• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

two equal jar's in the same eclipse project

 
Ranch Hand
Posts: 113
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

I have an Eclipse project in which I was using one of my proprietary jar file's, which was version 1.1

I made some changes to this jar, and today I have updated it to version 1.3

Then I added the new jar to Eclipse Build Path.

But I did not remove the version 1.1.

My project works normally.

Since both are in the same directory, what's the precedence that Eclipse assigns to them?

How do I know what version is it actually using?

I'm just curious about this. I don't have the intention to keep both similar files in the project, since the latest version does everything I need.

Thank you.
 
Marshal
Posts: 79180
377
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Sounds like something which would sit better on our IDEs forum/
 
Rodrigo Bossini
Ranch Hand
Posts: 113
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Campbell Ritchie wrote:Sounds like something which would sit better on our IDEs forum/



Maybe not. In the background Eclipse uses the standard java tools to determine the precedence of the files, I assume. If that's right, I guess the question in the end will have nothing to do with Eclipse.

I thank anyone who could answer my question anyway.

Thank you.
 
Author
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
But the standard Java method is classpath precedence. Eclipse manages it's own classpaths, so it'd depend on how it finally assembles the classpath for the run configuration.
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic