• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Tim Cooke
  • Devaka Cooray
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Rob Spoor
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
Bartenders:
  • Carey Brown
  • Roland Mueller

Setting Up Ant

 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Ranch Hand
Posts: 995
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Firstly: the classpath seems to me to be broken: to many \ and / in the same string (and not even escaped).
Try echoing/posting the values of PATH, CLASSPATH.

./pope
 
Brent Smith
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
author & internet detective
Posts: 41967
911
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
As this is really an Ant question, I'm moving it to our Ant forum.
 
Are you okay? You look a little big. Maybe this tiny ad will help:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic