Error when compiling the J2ee tutorial source files

HI,

I have installed ant, j2ee tomcat-3.2.2 and jdk1.3 and when i tried to compile the source file downloaded from java.sun by

ant converter, it prompted

"Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/tools/ant/main"

I am running it on win98 with the autoexec.bat containing the followings:

set J2EE_HOME=c:\j2sdkee1.3

set JAVA_HOME=c:\jdk1.3.1

set ANT_HOME=c:\jakarta-ant-1.3

set TOMCAT_HOME=c:\tomcat\jakarta-tomcat-3.2.2

set classpath=;.;c:\jdk1.3.1\jre\lib\rt.jar;c:\j2sdkee1.3\lib\j2ee.jar;c:\jaxp\xalan.jar;c:\jaxp\crimson.jar;c:\jaxp\jaxp.jar;c:\C:\jakarta-ant-1.3\lib\ant.jar;C:\jakarta-ant-1.3\lib\jaxp.jar;C:\jakarta-ant-1.3\lib\parser.jar

PATH=%PATH%;"C:\Program Files\Mts";C:\PROGRA~1\ULTRAE~1;c:\jdk1.3.1\bin;c:\j2sdkee1.3\bin;c:\jakarta-ant-1.3\bin;C:\PROGRA~1\MICROS~4\80\TOOLS\BINN

Really thx for help !!!!

[933 byte] By [damoncwk] at [2007-9-26 2:27:16]
# 1

Hi,

Which example are you trying to compile, and what version of ant are you using? I don't have a class named org.apache.tools.ant.main in ant.jar. I do have a class named org.apache.tools.ant.Main (the 'M' in uppercase).

Maybe take a look at ant.bat what the command line is.

leukbr at 2007-6-29 9:41:16 > top of Java-index,Desktop,Deploying...
# 2

Hi.

I am compiling the sample converter.ear downloaded from

the j2ee tutorial bundle form java.sun. I am using jakarta-ant-1.4alpha-bin.zip downloaded from jakarta

oh..yes it should be org.apache.tools.ant.Main ....sorryfor typo.....

look forward to any helpful reply

damoncwk at 2007-6-29 9:41:16 > top of Java-index,Desktop,Deploying...
# 3
Hi,I've noticed the following error in your classpath:c:\C:\jakarta-ant-1.3\lib\ant.jarshould beC:\jakarta-ant-1.3\lib\ant.jarRegards,Kurt.
leukbr at 2007-6-29 9:41:16 > top of Java-index,Desktop,Deploying...
# 4
Hi,I've fixed it but the same error occurs.Can canyone tell me how they install ant and how to compile ?
damoncwk at 2007-6-29 9:41:16 > top of Java-index,Desktop,Deploying...