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.
set environment variables as follows
Edit the system Path file /etc/profile
Add following lines in end
for reference http://javaandme.com