![]() ![]() Java HotSpot(TM) 64-Bit Server VM (build 25. The java 8 open jdk is one of the production-ready binary format distribution packages that contain all the jre like java runtime environment. Now, let's verify the installation: java -version. Updated FebruIntroduction to Java 8 OpenJDK The following article provides an outline for Java 8 OpenJDK. Let's install OpenJDK 8 from the Main repository with apt: sudo apt update sudo apt install openjdk-8-jdk. It's supported by Canonical the same company that maintains Ubuntu itself. Java(TM) SE Runtime Environment (build 1.8.0_281-b09) The Main repository is available by default on all Ubuntu systems. Set jdk1.8 as default: sudo update-alternatives -set java /usr/lib/jvm/jdk1.8.0_281/bin/java ![]() Sudo update-alternatives -install "/usr/bin/javac" "javac" "/usr/lib/jvm/jdk1.8.0_281/bin/javac" 100 ![]() Sudo tar xvf jdk-8u281-linux-圆4.tar.gz -C /usr/lib/jvmĪdd java and javac to update-alternatives: sudo update-alternatives -install "/usr/bin/java" "java" "/usr/lib/jvm/jdk1.8.0_281/bin/java" 100 In case it wasnt clear from the box above this means you should NOT attempt to install the default-jre, openjdk-8-jre, or openjdk-9-jre packages from the APT. Download JDK from the official website (subscription is required) or use the following command: wget -c -header "Cookie: oraclelicense=accept-securebackup-cookie" sudo apt install openjdk-8-jre-headless installs for java 8 or sudo apt install openjdk-13-jre-headless installs for java 13 That's it, the open-source community saves the day again. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |