Error: JAVA_HOME is not defined correctly.

David Gonzalez Rivera ubuntu at davidgonz.com
Sat Dec 10 16:03:38 UTC 2005


Chris Woods wrote:

> 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
>
Thanks a lot Chris, that really helped!




More information about the ubuntu-users mailing list