![]() You can see Oracle-Java is default java environment for now, let us change it to jre, select 2 and press enter. ![]() Press to keep the current choice, or type selection number: Verify that Java and the Java compiler have been properly installed: java -version javac -version. This package will run an installer for The OpenJDK 8, which is the latest LTS version available for Ubuntu 16.04 release. Install OpenJDK 8: sudo apt-get install openjdk-8-jdk. * 0 /usr/lib/jvm/java-8-oracle/jre/bin/java 1072 auto modeġ /usr/lib/jvm/java-7-openjdk-amd64/jre/bin/java 1071 manual modeĢ /usr/lib/jvm/java-8-oracle/jre/bin/java 1072 manual mode Install the Main repository with apt: sudo apt-get update. There are 2 choices for the alternative java (providing /usr/bin/java). :~# sudo update-alternatives -config java Java HotSpot(TM) 64-Bit Server VM (build 25.74-b02, mixed mode)Īs we have three different flavors of Java installed, let us find appropriate path for java version you wants to make default :~# java -version Java(TM) SE Runtime Environment (build 1.8.0_74-b02)
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |