Brent Smith

Greenhorn
+ Follow
since Sep 19, 2004
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Brent Smith

On closer inspection of the CLASSPATH variable I found a space:

CLASSPATH=C:\j2sdk1.4.2_04\lib\vioc_lib; .;c:\j2sdk1.4.2_04\lib;c:\Blazix\Blazix.jar

After removing the space the "ant -help" command works as expected. Thanks for pointing me in the right direction.

Brent
19 years ago
I am trying to install and set up Ant 1.6.2 so I can properly set up Tomcat 5.0.19. I am working on Windows 2000.

I downloaded ant from apache and expanded it. I set the ANT_HOME environment variable and my PATH variable to the ant home and ant bin directories. However, when I run "ant -help" from the command line I receive the error:

Exception in thread "main" java.lang.NoClassDefFoundError: /;c:\j2sdk1/4/2_0\lib;c:\Blazix\Blazix/jar -help

The string "/;c:\j2sdk1/4/2_0\lib;c:\Blazix\Blazix/jar" looks like it comes from the PATH variable. The PATH includes "C:\ant\apache-ant-1.6.2\bin" and it seems to be finding the ant.bat file and trying to execute it.

Can anyone help me figure out what I'm missing?

Thank you.
19 years ago
Sounds like your path needs to be set correctly. On Windows 98 etc go into the autoexec.bat file. On Windows 2000, right click "My Computer", then click "Properties", then choose the "Advanced" tab, finally click "Environment Variables". "Path" is one of the variables under "System Variables". Edit it to include the path to your jds. For example: c:\winnt\system32;c:\j2sdk1.4.2_04\bin; (make sure to included \bin, not just the j2sdk root directory). Once the path is set correctly you should be able to type c:\javac and have the option/help listing come up automatically. You should also set the "classpath" variable to include the current directory ("."). The classpath is included in the "System Variables" where "Path" is.

I suggest you go through sun's tutorial at http://java.sun.com/docs/books/tutorial/. Check out the "first cup of java" for Microsoft Windows.

Hope that helps.

Brent Smith
I have seen several references now to "Max's" book. What exactly is the title of this book? Several posts have mentioned that it was helpful to them and I may want to buy it myself.

Thanks.
September 7, 2004 I passed the SCJP with 93%. Thanks to Kathy and Bert and JavaRanch for the good advice.
19 years ago