ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Srinivas Velidanda" <sriniv...@spark5.com>
Subject RE: trouble getting ant1.4.1 to work
Date Mon, 11 Feb 2002 05:11:00 GMT
Hi,

ant.jar file in jakarta-ant-1.4.1\lib should be in your classpath at
runtime. You run ant, without having any other classes in your classpath.
Before running ant batch file you make sure, classpath environment variable
contains no classes by typing
set classpath= and press enter at command prompt, then you run ant.

 before doing this make sure the JAVA_HOME environment variable points
correctly to your current version of java home directory.

 ant batch file set all the required jar files into the classpath and then
executes.

mail me back if this works fine, still if you have problems, mail me what
actually happening.

Srinivas.



-----Original Message-----
From: bobnsandy@rpa.net [mailto:bobnsandy@rpa.net]
Sent: Sunday, February 10, 2002 12:01 AM
To: ant-user@jakarta.apache.org
Subject: Fwd: trouble getting ant1.4.1 to work



Hi:
  I'm new to the group.
  I am having trouble getting ant 1.4.1 working on my PC. Can someone help?
  I have downloaded the jakarta-ant-1.4.1 zip file and unzipped it into d:\
I have set:
  set ANT_HOME=d:\ant1.4.1
  set JAVA_HOME=c:\jdk1.3.1_01
  set path=%path%;%JAVA_HOME%\bin;%ANT_HOME%\bin  (in my autoexec.bat)
  set classpath=%classpath%;%ANT_HOME%\lib\*.jar  (in the current command
shell)

when I type: ant -version on the command line, I get:
Exception in thread "main"
java.lang.NoClassDefFoundError:org/apache/tools/ant/Main

I am using Windoze 98 on an Athalon Thunderbird processor. The mystery is
that,

when I try this at work on Windows NT 4.0/Pentium III, I have no trouble.
Any
thoughts? Thanks.

----- End forwarded message -----

--
To unsubscribe, e-mail:   <mailto:ant-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>







--
To unsubscribe, e-mail:   <mailto:ant-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>


Mime
View raw message