You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by marco struck <m....@nexolution.de> on 2000/12/27 17:26:31 UTC

Problem using different JDK's

Did you known, if you start Ant by using the Ant script, that the script
starts the first java engine which will be found in PATH. But if you
think that is no problem, it is even though.

If you set up the JAVA_HOME variable to a different Java engine than the
Java engine which will be found in Path, than there could be occurs an
error like that:

/usr/local/java/jdk1.2.2/bin/sparc/native_threads/java: fatal:
libhpi.so: open failed: No such file or directory
Killed

When I changed it to the same JDK, it has been work.

Re: Problem using different JDK's

Posted by Conor MacNeill <co...@cognet.com.au>.
Marco,

The scripts have been changed recently. Try a recently nightly build. That
should cause ant to launch the java in JAVA_HOME/bin.

Conor

----- Original Message -----
From: "marco struck" <m....@nexolution.de>
To: <an...@jakarta.apache.org>
Sent: Thursday, December 28, 2000 3:26 AM
Subject: Problem using different JDK's


> Did you known, if you start Ant by using the Ant script, that the script
> starts the first java engine which will be found in PATH. But if you
> think that is no problem, it is even though.
>
> If you set up the JAVA_HOME variable to a different Java engine than the
> Java engine which will be found in Path, than there could be occurs an
> error like that:
>
> /usr/local/java/jdk1.2.2/bin/sparc/native_threads/java: fatal:
> libhpi.so: open failed: No such file or directory
> Killed
>
> When I changed it to the same JDK, it has been work.
>