How do I change the value of JAVA_HOME in Ubuntu to point to Oracle’s Java?
Should it point to java-6-sun or java-6-sun-1.6.0.24 ?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I put the line:
in my
~/.bashrcfile./usr/lib/jvm/java7-oracleshould be a symbolic link pointing to/usr/lib/jvm/java-7-oracle-[version number here].The reason it’s a symbolic link is that in case there’s a new version of the JVM, you don’t need to update your
.bashrcfile, it should automatically point to the new version.If you want to set
JAVA_HOMEenvironment variables globally and at system level means use should set in/etc/environmentfile.