Note: WebUpd8 team's PPA has been discontinued with effective from April 16, 2019. I recommend you to use Webup8 Oracle Java8 Installer If you really want to use OpenJDK, you have to compile from source. OpenJDK 8 backport for trusty ppa:jochenkemnade/openjdk-8 OpenJDK builds (all archs) ppa:openjdk-r/ppa I found two repository but I do not recommend OpenJDK 64-Bit Server VM (build 25.Editors note: This answer is outdated as the PPA’s listed are not available anymore. You get something like this: openjdk version "1.8.0_171" Check with java -version and javac -version that version 8 is the default JDK.Repeat the previous operation with default Javac:.Enter ‘2’ to select the java-8-openjdk-amd64. Pay attention to the asterisk before the numbers on the left and if the correct one is not set choose the correct one by typing the number of it and pressing enter. Press enter to keep the current choice, or type selection number: * 0 /usr/lib/jvm/java-7-openjdk-amd64/jre/bin/java 1071 auto modeġ /usr/lib/jvm/java-7-openjdk-amd64/jre/bin/java 1071 manual modeĢ /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java 1069 manual mode You get something like this: There are 2 choices for the alternative java (providing /usr/bin/java). You get something like this (in a 32-bit environment -i386 postfix instead of -amd64): java-1.7.0-openjdk-amd64 1071 /usr/lib/jvm/java-1.7.0-openjdk-amd64
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |