Press to keep the current choice, or type selection number:īut I'm using it just to get the Installation path of each Java version. * 0 /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java 1081 auto modeġ /usr/lib/jvm/java-6-oracle/jre/bin/java 1 manual modeĢ /usr/lib/jvm/java-7-oracle/jre/bin/java 2 manual modeģ /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java 1081 manual modeĤ /usr/lib/jvm/java-8-oracle/jre/bin/java 3 manual modeĥ /usr/lib/jvm/java-9-oracle/bin/java 4 manual mode There are 5 choices for the alternative java (providing /usr/bin/java). Running this command shows a list of installed Java JDKs and JREs allowing one to be selected as the default that is used when java needs to be executed. Today, I'll share with you my tip on this subject. Working with multiple Java versions in your machine is a normal thing, especially if you're a Java developer, and because I'm a (very) lazy person, I'm always looking for a quicker/easier way to make the switch. So whenever Oracle will release the update, I can simple upgrade via package manager.
JAVA DOWNLOAD LINUX INSTALL
The Wepupd8 team didn’t add any binary for Oracle JAVA installation and they made a script to download the Oracle JAVA from Oracle website and install it straight away. Personally I prefer using Wepupd8 PPA to manage JAVA installation, it makes my life a lot more easier especially for updates. If you're using Ubuntu Linux on your daily basis work, you've probably Java installed on your machine.