Tuesday, March 15, 2016

Setting JAVA_HOME on Raspberry Pi

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"

.

No comments: