compiler finding plugin jar instead of library jar [message #532419] |
Sun, 09 May 2010 16:00  |
Eclipse User |
|
|
|
Using eclipse Galileo (on OS X 10.6), I have a java project with commons-lang 2.5 in the build path configured for the project. However, no matter what I try, eclipse seems to be limiting me to the api defined by commons-lang 2.1 (in particular, DateUtils is markedly different). I cannot figure out why eclipse would be putting its plugin jars ahead of the project jars when compiling, but that's the only possible explanation. There's a 2.1 and a 2.3 jar in the plugins folder of the eclipse installation, presumably part of the default install or subversion or aspectj, the only plugins I've manually installed. There must be some way to avoid this conflict. Please help!
|
|
|
Re: compiler finding plugin jar instead of library jar [message #532424 is a reply to message #532419] |
Sun, 09 May 2010 17:15  |
Eclipse User |
|
|
|
No Real Name wrote on Sun, 09 May 2010 16:00 | Using eclipse Galileo (on OS X 10.6), I have a java project with commons-lang 2.5 in the build path configured for the project. However, no matter what I try, eclipse seems to be limiting me to the api defined by commons-lang 2.1 (in particular, DateUtils is markedly different). I cannot figure out why eclipse would be putting its plugin jars ahead of the project jars when compiling, but that's the only possible explanation. There's a 2.1 and a 2.3 jar in the plugins folder of the eclipse installation, presumably part of the default install or subversion or aspectj, the only plugins I've manually installed. There must be some way to avoid this conflict. Please help!
|
If you are working on a Java project and not a plugin project, Eclipse will only use the jars defined on your projects build path to resolve class references. Are you sure that there is only one commons-lang jar on your Build Path.
Be sure to check the Libraries tab as well as any project referenced from the project that you are having trouble with. If this project is referencing another project that exports a different version of the jar, you could be picking it up from there.
|
|
|
Powered by
FUDForum. Page generated in 0.03140 seconds