![]() ![]() My question is: How did this mess come about, and what's the best way to sort this out? I'd like to remove everything else and have OpenJDK 8 as my default JDK. Configure your operating system to use the latest build of a Technology Compatibility Kit (TCK) Certified OpenJDK version 8, such as OpenJDK 8 ( minimum). And Java OpenJDK 16 for Ubuntu Bionic (Open Java Development Kit) is a Free and Open Source Implementation of the Java Platform, Standard Edition (Java SE). Lrwxrwxrwx 1 root root 53 Nov 2 19:35 /etc/alternatives/javap.1.gz -> /usr/lib/jvm/java-8-openjdk-amd64/man/man1/javap.1.gzĪll of these point to the 8 directory, and not 1.8, which is causing problems when running programs. Steps for installing OpenJDK 8 on Debian-based systems. The Tutorial shows you Step-by-Step How to Install Oracle-Sun OpenJDK 16 JRE/JDK on Ubuntu 18.04 Bionic LTS 64-bit GNU+Linux Desktop/Server. Lrwxrwxrwx 1 root root 43 Nov 2 19:35 /etc/alternatives/javap -> /usr/lib/jvm/java-8-openjdk-amd64/bin/javap* Lrwxrwxrwx 1 root root 53 Nov 2 19:35 /etc/alternatives/javah.1.gz -> /usr/lib/jvm/java-8-openjdk-amd64/man/man1/javah.1.gz Lrwxrwxrwx 1 root root 43 Nov 2 19:35 /etc/alternatives/javah -> /usr/lib/jvm/java-8-openjdk-amd64/bin/javah* If you want to develop Java programs then please install the openjdk-8-jdk package. On the command line, type: sudo apt-get install openjdk-8-jre The openjdk-8-jre package contains just the Java Runtime Environment. Lrwxrwxrwx 1 root root 55 Nov 2 19:35 /etc/alternatives/javadoc.1.gz -> /usr/lib/jvm/java-8-openjdk-amd64/man/man1/javadoc.1.gz or unzip openjdk-13bin.zip depending on the archive type. Lrwxrwxrwx 1 root root 45 Nov 2 19:35 /etc/alternatives/javadoc -> /usr/lib/jvm/java-8-openjdk-amd64/bin/javadoc* Lrwxrwxrwx 1 root root 53 Nov 2 19:35 /etc/alternatives/javac.1.gz -> /usr/lib/jvm/java-8-openjdk-amd64/man/man1/javac.1.gz Lrwxrwxrwx 1 root root 43 Nov 2 19:35 /etc/alternatives/javac -> /usr/lib/jvm/java-8-openjdk-amd64/bin/javac* Lrwxrwxrwx 1 root root 52 Nov 2 19:32 /etc/alternatives/java.1.gz -> /usr/lib/jvm/java-9-openjdk-amd64/man/man1/java.1.gz Lrwxrwxrwx 1 root root 42 Nov 7 11:02 /etc/alternatives/java -> /usr/lib/jvm/java-8-openjdk-amd64/bin/java* Now look at this: core$ ll /etc/alternatives/jav* If I do /usr/lib/jvm/java-8-openjdk-amd64/bin/java HelloWorld on an existing HelloWorld.class file, I get nothing, but doing /usr/lib/jvm/java-1.8.0-openjdk-amd64/bin/java HelloWorld produces the expected output. The problem is that the first directory seems to be corrupt. Somehow I've ended up with two directories for OpenJdk 8 on my Ubuntu 16.04 system: ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |