I have never used Ubuntu before. How do I go about setting an environmental variable that points to JDK? I installed it on my Desktop. I typed in "EXPORT JAVA_HOME=~/Desktop/jdk" in the command prompt but it didn't work.
In addition to xpt's answer:
JAVA_HOME is used internally for some things by the Java runtime. In order to run
It should work at least in the command prompt session that you just set. Else your
To be cautious, do the following:
If so, do the following: