speeddownloadcomic.blogg.se

How to check java version in linux
How to check java version in linux









how to check java version in linux

usage: alternatives -install * alternatives -remove alternatives -auto alternatives -config alternatives -display alternatives -set alternatives -list alternatives -remove-all alternatives -add-slave alternatives -remove-slave common options: -verbose -test -help -usage -version -keep-missing -altdir -admindir This may be freely redistributed under the terms of the GNU Public License. $ alternatives -help alternatives version 1.11 - Copyright (C) 2001 Red Hat, Inc. The alternatives tool can create, remove, and maintain the symbolic links of different systems. I think the easiest way to manage multiple versions of Java (or Python, or any other application in Linux) is to use the alternatives tool.

how to check java version in linux

Javac and mvn returns version 8 $ javac -version javac 1.8.0_222 $ mvn -version Apache Maven 3.5.4 (Red Hat 3.5.4-5) Maven home: /usr/share/maven Java version: 1.8.0_222, vendor: Oracle Corporation, runtime: /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.86_64/jreĪ quick check on where each links are pointed. Java -version returns version 11 $ java -version openjdk version "11.0.7" Complications arise when I started Java development as java, javac, and mvn were pointing to different jdk packages. I had Java openjdk versions 8 and 11 which were installed on separate occasions. I had a recent trouble managing multiple Java versions installed in my Linux machine.











How to check java version in linux