Unable to locate Java. Please set JAVA_HOME environment variable.

arunsv84

Well-Known Member
Oct 20, 2008
372
1
68
127.0.0.1
cPanel Access Level
Root Administrator
Please follow the steps listed...

You can locate java using the command " whereis java"

edit .bash_profile file in your home direcory and append the lines.
Code:
export JAVA_HOME="/path/to/java/home"
export PATH="/path/to/java/bin:$PATH"
You can check the path using the command "echo $JAVA_HOME"

Hope this helps...:)

Please refer the links listed below if u hav any doubts....

http://ubuntuforums.org/archive/index.php/t-111783.html

http://forums.fedoraforum.org/showthread.php?t=85446

http://www.mail-archive.com/[email protected]/msg12820.html

http://forums.sun.com/thread.jspa?threadID=567732