I agree with Martin. A good option is to look to your environment prior to call ant; you can edit the ant executable file (<ANT_HOME>/bin/ant) to display this values (by calling the 'set' command), then execute the call to the ant class.
Also, the ant script is able to look for different unix/linux flavors. Maybe something is overriding your $JAVA_HOME definition. All this info is from ant 1.5.2 but it must be pretty much the same for all the versions Regards -Luis -----Original Message----- From: Martin Gainty [mailto:[EMAIL PROTECTED] Sent: Monday, October 20, 2003 7:09 PM To: Ant Users List; [EMAIL PROTECTED] Subject: Re: Please help: ant suddenly failing sounds like you have an override somewhere for $JAVA_HOME possibly java.home property is defined to something other than JAVA_HOME env var? Are you using Anthill Pro? -M ----- Original Message ----- From: <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, October 20, 2003 7:51 PM Subject: Please help: ant suddenly failing > > > [ I'm concerned that my first attempt to send this in did not work; > pardon the repeat if this is not the case. ] > > > ant is suddenly failing; I can't figure out what I did to cause this. > When I run it with -verbose, it says > > Detected Java version: 1.3 in: /usr/local/opt/java/jdk1.3.1_02/jre > > even though $JAVA_HOME is exported as /opt/java/jdk. Why is ant > ignoring $JAVA_HOME and looking for Java in /usr/local/opt/java? > > Thanks! > > Kynn > > P.S. Please Cc me in your replies. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]