Error: JAVA_HOME is not defined correctly.

Chris Woods chris at bitspace.org
Sat Dec 10 14:35:13 UTC 2005


I'm somewhat amazed that out of the nearly dozen or so responses, not a 
single one was even close to correct.

You want to create an environment variable called "JAVA_HOME" that 
references the base directory of the installation of your JRE or JDK. 
For example, on my machine, I've got Sun's JDK 1.5.0_05 in 
/usr/local/java/jdk1.5_05. In my .profile ($HOME/.profile) I've put the 
following two lines:

JAVA_HOME="/usr/local/java/jdk1.5_05"
export JAVA_HOME

Easy as pie. If you just want to set it temporarily for your current shell:

export JAVA_HOME="/usr/local/java/jdk1.5_05"

HTH,
Chris

-- 
 Chris Woods           AIM gnarrlybob
 chris at bitspace.org    ICQ 21740987
 http://bitspace.org/  MSN chris at bitspace.org
 m: +1 617 820 9492    Yahoo! IM cjwoods





More information about the ubuntu-users mailing list