![]() As per the below output, “OpenJDK 1.7.0_65” has been installed from the Ubuntu repository: $ java -version Use the below commands to check how JAVA was installed on an Ubuntu/Debian system. Manual or Third-party repository or RPM file.ģ.a) Checking Java installation method on Debian/Ubuntu Oracle JAVA : User might use one of these methods viz.OpenJDK : Everybody uses distribution official repository to install openJDK.Distribution repository or Third-party repositoryĪs stated in the beginning of the article, user would have installed Oracle Java or openJDK.It could be installed using one of the below methods: Press enter to keep the current choice, or type selection number: 3) Checking Java installation methodīefore uninstalling Java, you should find how Java was installed in the system. * 3 /usr/lib/jvm/java-7-oracle/jre/bin/java 1072 manual mode There are 3 choices for the alternative java (providing /usr/bin/java).Ġ /usr/lib/jvm/java-7-oracle/jre/bin/java 1072 auto modeġ /opt/jdk1.8.0_20/bin/java 2 manual modeĢ /usr/lib/jvm/java-7-openjdk-amd64/jre/bin/java 1071 manual mode Java HotSpot(TM) 64-Bit Server VM (build 24.72-b04, mixed mode) 2) Check if you have installed any other Java versionįor various reasons, some users might have installed multiple Java versions which can all be listed together using the 'update-alternatives' command as shown below.Īs per the following output, we have installed three Java versions and ‘Oracle Java 7’ is the one that’s currently active on the system: $ sudo update-alternatives -config java Java(TM) SE Runtime Environment (build 1.7.0_72-b14) ![]() The below output shows that we have Oracle Java version “1.7.0_72” : $ java -version Installed Java version in Linux system can be verified using the following command.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |