Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #22980
| Newsgroups | comp.lang.java.programmer |
|---|---|
| Date | 2013-03-20 07:34 -0700 |
| Message-ID | <3ef61613-19c4-42d5-a9bb-82c2d9b4b8cd@googlegroups.com> (permalink) |
| Subject | help: class conflict in two different version JAR files |
| From | zyng <xsli2@yahoo.com> |
I am using Eclipse. Project A uses 3rdparty.1.0.1.jar file; Project B uses 3rdparty.1.0.3.jar file. Project B depends on Project A. I am working on Project B. I am not supposed to change anything in Project A. I hope that the code in B always use the class inside 3rdparty.1.0.3.jar. I don't know how to do that. I found that for the classes in 3rdpartyxx.jar, the code in B just use the class in 3rdparty.1.0.1.jar file, which is used by A. I guess since B depends on A, so 3rdparty.1.0.1.jar file has the higher priority. This causes some problem, which I just omit here. If running by ANT on the command line, due to the way I set up(project A's code listed near the end of the Java classpath), the code in B uses the classes in 3rdparty.1.0.3.jar and the problem was avoided. I hope to solve the problem in Eclipse. Thank you for your help.
Back to comp.lang.java.programmer | Previous | Next — Next in thread | Find similar | Unroll thread
help: class conflict in two different version JAR files zyng <xsli2@yahoo.com> - 2013-03-20 07:34 -0700
Re: help: class conflict in two different version JAR files zyng <xsli2@yahoo.com> - 2013-03-20 07:50 -0700
Re: help: class conflict in two different version JAR files Lew <lewbloch@gmail.com> - 2013-03-20 12:16 -0700
Re: help: class conflict in two different version JAR files Lew <lewbloch@gmail.com> - 2013-03-20 12:14 -0700
Re: help: class conflict in two different version JAR files Arne Vajhøj <arne@vajhoej.dk> - 2013-03-20 22:11 -0400
Re: help: class conflict in two different version JAR files Roedy Green <see_website@mindprod.com.invalid> - 2013-03-20 20:32 -0700
csiph-web