Ant in Eclipse classpath issues, need help
posted 21 years ago
-
-
Number of slices to send:Optional 'thank-you' note:
-
-
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.
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.
posted 21 years ago
-
-
Number of slices to send:Optional 'thank-you' note:
-
-
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.
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.
[OCP 21 book] | [OCP 17 book] | [OCP 11 book] | [OCA 8 book] [OCP 8 book] [Practice tests book] [Blog] [JavaRanch FAQ] [How To Ask Questions] [Book Promos]
Other Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, TOGAF part 1 and part 2
| 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 |











