ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Steve Loughran <>
Subject Re: Specifying the java runtime for Ant
Date Thu, 15 Sep 2005 14:23:35 GMT
Andy Wickson wrote:
> I am really trying to get Ant itself to run using a non-default java runtime 
> (one I specify). The reasons are very convoluted and I won't bore you with 
> them.
> There seems to be something in the docs about this but I get the feeling 
> things may have changed recently. I have seen talk of a .antrc file in which 
> you can specify env. vars. such as JAVACMD but i have no such file. The 
> manual also mentions running from java which may of help but I've tried 
> every combination of the following:
> java/142/bin/java -Dant.home=$$ANT_HOME
> java/142/bin/java -Dant.home=apache-ant-1.6.5/bin/ant 
> etc
> but always get:
> The java class is not found: org/apache/tools/ant/Main
> even though i can see it there in the jar file.

well, that's because you arent setting your classpath up. you want 
"java" to run a java program, you have to name the jars that it loads.

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

View raw message