Can't run ant at home!
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Larry_Searing
Posted On:   Friday, September 14, 2001 07:00 PM

Ant does not run after being reinstalled. It never ran on this machine with win 98 LE. The exact same version runs fine on another machine with WIN 2000. What could be going wrong? The screen dump is here along with the environment dump. C:lsearing>ant build Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/tools/ant/ Main C:lsearing>set TMP=c:windowsTEMP TEMP=C:windowsTEMP PROMPT=$p$g winbootdir=C:WINDOWS COMSPEC=C:COMMAND.COM CTSYN=C:WINDOWS TOMCAT_HOME=C:jakarta-tomcat-3.2.3 windir=C:WINDOWS BLASTER=A240 I2 D3 H7 P330 T6 JAVA_HOME=c:jdk1.3.1_01 ANT_HOME=c:jakarta-ant-1   More>>

Ant does not run after being reinstalled. It never ran on this machine with win 98 LE.
The exact same version runs fine on another machine with WIN 2000. What could be
going wrong? The screen dump is here along with the environment dump.


			
C:lsearing>ant build
Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/tools/ant/
Main

C:lsearing>set
TMP=c:windowsTEMP
TEMP=C:windowsTEMP
PROMPT=$p$g
winbootdir=C:WINDOWS
COMSPEC=C:COMMAND.COM
CTSYN=C:WINDOWS
TOMCAT_HOME=C:jakarta-tomcat-3.2.3
windir=C:WINDOWS
BLASTER=A240 I2 D3 H7 P330 T6
JAVA_HOME=c:jdk1.3.1_01
ANT_HOME=c:jakarta-ant-1.4
PATH=C:JDK13~1.1_0BIN;C:JAKART~1.4BIN
CLASSPATH=.
_CLASSPATHCOMPONENT=c:jdk1.3.1_01lib ools.jar
CMDLINE="c:jdk1.3.1_01 injava" -classpath "c:jdk1.3.1_01lib ools.jar;." -D
ant.home="c:jakarta-ant-1.4" org.apache.tools.ant.Main build



Larry    <<Less

Re: Can't run ant at home!

Posted By:   Larry_Searing  
Posted On:   Friday, September 14, 2001 07:14 PM

Here is what ant.bat is doing up till the problem occurs:



C:lsearing>rem @echo off

C:lsearing>
C:lsearing>if exist "antrc_pre.bat" call "antrc_pre.bat"

C:lsearing>
C:lsearing>if not ""=="Windows_NT" goto win9xStart

C:lsearing>rem Slurp the command line arguments. This loop allows for an unlim
ited number of

C:lsearing>rem agruments (up to the command line limit, anyway).

C:lsearing>
C:lsearing>set ANT_CMD_LINE_ARGS=

C:lsearing>
C:lsearing>if builda==a goto doneStart

C:lsearing>set ANT_CMD_LINE_ARGS= build

C:lsearing>shift

C:lsearing>goto setupArgs

C:lsearing>if a==a goto doneStart

C:lsearing>rem This label provides a place for the argument list loop to break
out

C:lsearing>rem and for NT handling to skip to.

C:lsearing>
C:lsearing>rem find ANT_HOME

C:lsearing>if not "c:jakarta-ant-1.4"=="" goto checkJava

C:lsearing>set _JAVACMD=

C:lsearing>set LOCALCLASSPATH=.

C:lsearing>for %i in ("c:jakarta-ant-1.4lib*.jar") do call "c:jakarta-ant-1
.4inlcp.bat" %i


C:lsearing>if "c:jdk1.3.1_01" == "" goto noJavaHome

C:lsearing>if "" == "" set _JAVACMD=c:jdk1.3.1_01injava

C:lsearing>if exist "c:jdk1.3.1_01lib ools.jar" call "c:jakarta-ant-1.4in
lcp.bat" c:jdk1.3.1_01lib ools.jar

C:lsearing>set _CLASSPATHCOMPONENT=c:jdk1.3.1_01lib ools.jar

C:lsearing>if a==a goto gotAllArgs

C:lsearing>set LOCALCLASSPATH=c:jdk1.3.1_01lib ools.jar;.

C:lsearing>
C:lsearing>

C:lsearing>if exist "c:jdk1.3.1_01libclasses.zip" call "c:jakarta-ant-1.4
inlcp.bat" c:jdk1.3.1_01libclasses.zip

C:lsearing>goto checkJikes

C:lsearing>if not "" == "" goto runAntWithJikes

C:lsearing>
C:lsearing>"c:jdk1.3.1_01injava" -classpath "c:jdk1.3.1_01lib ools.jar;.
" -Dant.home="c:jakarta-ant-1.4" org.apache.tools.ant.Main build
Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/tools/ant/
Main

C:lsearing>goto end

C:lsearing>set LOCALCLASSPATH=

C:lsearing>set _JAVACMD=

C:lsearing>set ANT_CMD_LINE_ARGS=

C:lsearing>
C:lsearing>if not ""=="Windows_NT" goto mainEnd

C:lsearing>if exist "antrc_post.bat" call "antrc_post.bat"

C:lsearing>



Larry
About | Sitemap | Contact