At 08:54 AM 12/30/01 -0500, you wrote: >Why are you not simply using ant.bat that comes with the Ant distribution?
never could make that work. if i try running that ant.bat, i get: D:\usr\ray\java\testAnt>d:\java\jakarta-ant-1.4\bin\ant.bat "C:\jdk1.3.1_01\bin\java" -classpath "C:\jdk1.3.1_01\lib\tools.jar;d:\classpath" -Dant.home="D:\java\jakarta-ant-1.4" org.apache.tools.ant.Main Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/tools/ant/Main >Put ANT_HOME/bin in your path and simply type 'ant'. trying that (along with the homes) gets a: D:\usr\ray\java\testAnt>ant "C:\jdk1.3.1_01\bin\java" -classpath "C:\jdk1.3.1_01\lib\tools.jar;d:\classpath" -Dant.home="D:\java\jakarta-ant-1.4" org.apache.tools.ant.Main Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/tools/ant/ Main when autoexec.bat is: PATH C:\jdk1.3.1_01\bin;C:\PROGRA~1\WIN98RK set CLASSPATH=d:\classpath :: ant stuff set ANT_HOME=D:\java\jakarta-ant-1.4 set JAVA_HOME=C:\jdk1.3.1_01 set PATH=%PATH%;%ANT_HOME%\bin SET PATH=C:\Perl\bin\;%PATH% seems like it can't work without an explicit classpath to a jar in some cases. but then it seems to want to have these homes defined. very strange. thanks >----- Original Message ----- >From: "Ray Tayek" <[EMAIL PROTECTED]> >To: <[EMAIL PROTECTED]> >Sent: Sunday, December 30, 2001 8:26 AM >Subject: .bat file for ant > > > > hi, using: > > > > set JAVA_HOME=C:\jdk1.3.1_01 > > set ANT_HOME=D:\java\jakarta-ant-1.4 > > java -cp D:\java\jakarta-ant-1.4\lib\ant.jar;. org.apache.tools.ant.Main > > > > in a batch file to run the ant sample. works fine. but the same file > > running from a different directory gets a: > > > > D:\java\java_xml_pack-fall01\jaxp-1.1.3\examples\SAXTagCount>java -cp > > D:\java\jkarta-ant-1.4\lib\ant.jar;. org.apache.tools.ant.Main > > Buildfile: build.xml > > > > compile: > > [javac] Modern compiler is not available - using classic compiler > > [javac] Compiling 1 source file > > > > BUILD FAILED > > > > D:\java\java_xml_pack-fall01\jaxp-1.1.3\examples\SAXTagCount\build.xml:28: > > Cannot use classic compiler, as it is not available A common solution is >to > > set the environment variable JAVA_HOME to your jdk directory. > > > > anybody have a clue as to why he is confused? > > > > thanks > > > > --- > > ray tayek http://home.earthlink.net/~rtayek/ > > orange county java users group http://www.ocjug.org/ > > want privacy? http://www.freedom.net/ > > hate spam? http://samspade.org/ssw/ > > > > > > -- > > To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> > > For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> > > > > > > >-- >To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> >For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> --- ray tayek http://home.earthlink.net/~rtayek/ orange county java users group http://www.ocjug.org/ want privacy? http://www.freedom.net/ hate spam? http://samspade.org/ssw/ -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
