Define the JAVA_HOME environment variable

1. Make sure you have JRE/JDK installed
Code:
java -version
should print the 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
4. Now try running ./startup.sh.

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: