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 org.apache.tools.ant.Main
java/142/bin/java -Dant.home=apache-ant-1.6.5/bin/ant
org.apache.tools.ant.Main
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]