java -version tells you the java version.
/usr/lib/jvm contains a folder for the corresponding version.
Also, /user/lib/jvm/default-java will always point to the version in effect, so that that is probably the safest path.
export JAVA_HOME="/usr/lib/jvm/default-java"
.
/usr/lib/jvm contains a folder for the corresponding version.
Also, /user/lib/jvm/default-java will always point to the version in effect, so that that is probably the safest path.
export JAVA_HOME="/usr/lib/jvm/default-java"
.
No comments:
Post a Comment