Code:
java -version
2. Get the path to JDK/JRE install folder. For instance, if you have jdk1.5 installed, it would be /usr/lib/jvm/java-1.5.0-sun.
3. At the command prompt, type
Code:
export JAVA_HOME=/usr/lib/jvm/java-1.5.0-sun
If it works, add the export command to .bashrc file in your HOME folder to export JAVA_HOME everytime you open a terminal (bash).
Source: http://ubuntuforums.org/showthread.php?t=677770
No comments:
Post a Comment