• 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
  • Tim Cooke
  • paul wheaton
  • Paul Clapham
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Roland Mueller
  • Piet Souris
Bartenders:

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: 42163
937
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.
reply
    Bookmark Topic Watch Topic
  • New Topic