You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Niko Schwarz <ig...@surf-callino.de> on 2001/03/19 15:13:51 UTC

ANT_HOME set incorrectly, please change error message

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi, 
this is Nick and I'm kind of a big fan of ant.

I spent my whole afternoon searching the ant source files for the solution 
why it suspiciously didn't work anymore after re-installing.
I got an error message telling that my JAVA_HOME isn't set properly and that 
surprised me very much, because this variable has been set correctly for 
years. Alright, I checked and tried, and I didn't find anything. I scanned 
your sources but everything looked fine. After a while I checked the ant 
script for hints and then there was the solution, I typed:

echo $ANT_HOME

into the script and it resulted in:

/usr/bin/..

well, that isnt good, and the reason is simple: i put a hard link to ant into 
/usr/bin.

ok, that was stupid, but It isn't nice that the error message just lies about 
the incorrectly set variable!

please check that and stay tuned =)

regards,

Nick
- -- 
"Ubi non accusator, ibi non judex."

(Where there is no police, there is no speed limit.)
		-- Roman Law, trans. Petr Beckmann (1971)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.4 (GNU/Linux)
Comment: Weitere Infos: siehe http://www.gnupg.org

iD8DBQE6thQftCMH6LsGpQgRAtFLAJ0VdtYYPiKeLknsUR6+rB8WXZuWZgCgqXJv
vcKh1p5geIgvPhH6eo+sjL4=
=DpxV
-----END PGP SIGNATURE-----

Re: ANT_HOME set incorrectly, please change error message

Posted by Niko Schwarz <ig...@surf-callino.de>.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Am Montag, 19. M�rz 2001 15:43 erhelltest du mich mit dieser Nachricht

> > well, that isnt good, and the reason is simple: i put a hard link to
> > ant into /usr/bin.
>
> OK, two issues here.
>
> (1) Ant can guess ANT_HOME when you use symbolic links, but will fail
> for hardlinks. I doubt we can do much here, can we?

Nothing I guess. That's why I said it was stupid to set a hardlink =)

> (2) Error message talks about JAVA_HOME while ANT_HOME is the
> problem. Which error message has this been? Which one do we need to
> fix?

it said:


compile:
    [javac] Modern compiler is not available - using classic compiler
    [javac] Compiling 2 source files to /home/igel/coffee/mine/chat/classes
 
BUILD FAILED
 
/home/igel/coffee/mine/chat/build.xml:6: Cannot use classic compiler, as it 
is not available A common solution is to set the environment variable 
JAVA_HOME to your jdk directory.

not nice, eh?

regards,

nick
- -- 
God is really only another artist.  He invented the giraffe, the
elephant and the cat.  He has no real style, He just goes on trying
other things.
		-- Pablo Picasso
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.4 (GNU/Linux)
Comment: Weitere Infos: siehe http://www.gnupg.org

iD8DBQE6th9ptCMH6LsGpQgRAkakAJ9MfIJVzmlC2tkhpjDKavTqJCdplQCdHCS9
QNTyw+l8b50QL06XObzZR+o=
=Mgxl
-----END PGP SIGNATURE-----

Re: ANT_HOME set incorrectly, please change error message

Posted by Stefan Bodewig <bo...@apache.org>.
Niko Schwarz <ig...@surf-callino.de> wrote:

> I got an error message telling that my JAVA_HOME isn't set properly
> and that surprised me very much, because this variable has been set
> correctly for years.

[...]

> and then there was the solution, I typed:
> 
> echo $ANT_HOME
> 
> into the script and it resulted in:
> 
> /usr/bin/..
> 
> well, that isnt good, and the reason is simple: i put a hard link to
> ant into /usr/bin.

OK, two issues here. 

(1) Ant can guess ANT_HOME when you use symbolic links, but will fail
for hardlinks. I doubt we can do much here, can we?

(2) Error message talks about JAVA_HOME while ANT_HOME is the
problem. Which error message has this been? Which one do we need to
fix?

Stefan