Error: JAVA_HOME is not defined correctly.

Dominik Szynk domeks at interia.pl
Sat Dec 10 09:29:50 UTC 2005


David Gonzalez Rivera napisaƂ(a):
> Alfred Vahau wrote:
> 
>> Set this in your PATH which should be in /etc/profile.
>> Then export the PATH.
>> To flag the change, issue a command like
>> . profile (period profile). I'm assuming you're using (BA)SH shell.
>>
>> Alfred,
>>
>>
>> David Gonzalez Rivera wrote:
>>
>>> Is there a way to set the JAVA_HOME?
>>> I have JRE installed (and JDK too)
>>>
>>> I'm trying to compile jEdit (Yes I know I can download the deb, but I 
>>> feeling a bit bored so I prefer learning a bit more :) )
>>>
>>> Since I need this app, it tells me this
>>>
>>> david at akulinux:~/Files/apache-ant-1.6.5$ ./build.sh
>>> Warning: JAVA_HOME environment variable not set.
>>>  If build fails because sun.* classes could not be found
>>>  you will need to set the JAVA_HOME environment variable
>>>  to the installation directory of java.
>>> Error: JAVA_HOME is not defined correctly.
>>>  We cannot execute java
>>> Bootstrap FAILED
>>> david at akulinux:~/Files/apache-ant-1.6.5$
>>>
>>>
>>
> Ahh, got a little lost, more explanation? :(
> 
Hi

Probably during instalation process you will need to set param JAVA_HOME 
like a swich, which could be:

$./build.sh -JAVA_HOME=path_to_your_java_bin

it could look like this:

$./build.sh -JAVA_HOME=/usr/java/jre1.5.0_06/bin

or to your JDK dir:

$./build.sh -JAVA_HOME=/usr/java/jdk1.5.0_04/bin

or something like that.
You can also add to your .bash_profile something like this:

export JAVA_HOME=$JAVA_HOME:/usr/java/jdk1.5.0_04/bin

which should also work (it works for me ;-) )

-- 
Regards
  Dominik Szynk

------------------------------------------------------------------------
Szukasz pracy? Szukamy pracownikow: dziennikarzy, webmasterow, 
specjalisty ds. badan, promotion managera, administratorow baz danych, 
programistow Windows i wielu innych! >>> http://link.interia.pl/f18e6





More information about the ubuntu-users mailing list