![]() 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. OpenJDK Lifecycle and Support Policy - Red Hat Customer Portal has been updated around March 2020, so openJDK 1.8 may be maintained until 2026-05. In Java Is Still Free, it is listed as 'At least through Sept 2023'. 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. Standard installation of OpenJDK on Ubuntu 16.04 Parent article: OpenJDK installation method and EOL summary. 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* ![]() 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 Lrwxrwxrwx 1 root root 45 Nov 2 19:35 /etc/alternatives/javadoc -> /usr/lib/jvm/java-8-openjdk-amd64/bin/javadoc* Switching to apt-get install default-jdk tries to pull the same package and, likewise, fails with a 404 error. I had to rebuild a docker container this past week, and as part of a 16.04 container creation, it does an apt-get install openjdk-8-jdk which fails with a 404 error. 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 Ubuntu 16.4 LTS cannot find openjdk-8-jdk. 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 |