ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hakan Koseoglu" <>
Subject Re: JAVA_HOME path problem in linux
Date Wed, 12 Jun 2002 16:36:05 GMT

You can locate java (or any file) by the following command:
# find . -name java -print

If you installed an rpm file, you can try the following:

[root@bilbo root]# rpm -q -a|grep -i jdk

Well I seem to have both jdk1.3.1 version 01 and 03

Interestingly enough, Sun distributes JDK1.4 under a different package name
[root@bilbo root]# rpm -q -a |grep -i j2

Which gives which JDK package you loaded and the following nice command
shows any file belonging to that package.

[root@bilbo root]# rpm -q -l jdk-1.3.1_03-fcs

So now you know where java is. Then it is trivial to set JAVA_HOME (in the
case above, it is under /usr/java/jdk1.3.1_03 on my PC).

Hakan Koseoglu

PCMS Datafit Ltd.
3 Avro Court
Ermine Business Park
Cambs PE29 6XS

Tel: +44-1480-435467
Fax: +44-1480-434012

The information contained in this e-mail is intended only for the person
or entity to which it is addressed and may contain confidential and/or
privileged material. If you are not the intended recipient of this
e-mail, the use of this information or any disclosure, copying or
distribution is prohibited and may be unlawful.

If you received this in error, please contact the sender and delete the
material from any computer.

The views expressed in this e-mail may not necessarily be the views of
The PCMS Group plc and should not be taken as authority to carry out any
instruction contained.
----- Original Message -----
From: <>
To: "Ant Users List" <>
Sent: Wednesday, June 12, 2002 1:15 PM
Subject: JAVA_HOME path problem in linux

> Thanx for that, but I 've tried it and didn't work
> If I put JAVA_HOME=/usr/bin I get the error message
> cannot execute or load usr/bin/bin
> If I put JAVA_HOME=/usr I get the error message
> couldn't find or load essential class java/lang/Object
> set JAVA_HOME=/usr/bin and not /usr/bin/java
> _____________________________________
> Kapil Singh Pawar
> Consultant - Integration
> i2 Technologies India Private Ltd.
> 1 Primrose Road
> Bangalore 560 025, INDIA
> Email:
> Tel: +91 80 558 1487-90 ext. 2416
> Rigas Parathyras <>
> 06/12/02 05:29 PM
> Please respond to "Ant Users List"
>         To:
>         cc:
>         Subject:        please help JAVA_HOME problem in path (mandrake)
> hello there
> I was wondering if someone could help me with ant installation. It's
> about the JAVA_HOME path. I am
> using linux, Mandrake and I cannot find the path where java is
> installed. Whenever I type ant, I get the error message:
> ERROR: JAVA_HOME is not defined correctly.
> The thing is I installed java from the cdrom of mandrake originally and
> not seperately and now I cannot find it.
> If I type whereis java I get the directories:
> /usr/bin/java   /usr/include/java
> The first one just has the java command and the second the libraries (If
> I put the second as JAVA_HOME it gives me the error message that it
> cannot find the class Object.
> I would be so greatful if you could help me in this
> Best regards
> Rigas
> --
> To unsubscribe, e-mail:   <>
> For additional commands, e-mail: <>

To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

View raw message