• 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:
  • Devaka Cooray
  • Campbell Ritchie
  • Tim Cooke
  • Ron McLeod
  • Paul Clapham
Sheriffs:
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Saloon Keepers:
  • Tim Holloway
Bartenders:

Ant in Eclipse classpath issues, need help

 
Ranch Hand
Posts: 47
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I'm using Eclipse 3.0, which includes Ant 1.6.1. Not sure if this should go in this forum or the Ant one.

In general, Ant runs fine from inside Eclipse, but I have 2 issues:

#1 For every new project, I have to keep adding junit.jar to the classpath for each individual project's build.xml. There's got to be some common place to add jars needed at compile-time. Where is it? I've gone to the Windows->Preferences->Ant tabs, but only find runtime classpath entries there.

#2 I also have problems finding xerces classes at runtime, for 3rd party jars/classes I'm using which compile fine but use xerces at runtime. I've tried adding a xerces.jar to the Ant runtime classpath, I've tried adding the jar to my system classpath, nothing works or they create other problems. I've searched eclipse's site on it and find several bug notes about xerces classpath issues, but can't figure out if they're current bugs or what to do about it.

Any help would be greatly appreciated, I'm extremely frustrated at continuing to waste time on environmental/classpath issues.
 
author & internet detective
Posts: 42200
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
Brian,
For number one, why don't you add the junit.jar to the build path in Eclipse? It is still necessary to do it everywhere though.
 
Get me the mayor's office! I need to tell him about this tiny ad:
The new gardening playing cards kickstarter is now live!
https://www.kickstarter.com/projects/paulwheaton/garden-cards
reply
    Bookmark Topic Watch Topic
  • New Topic