This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes IDEs, Version Control and other tools and the fly likes Eclipse build path library not being updated Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "Eclipse build path library not being updated" Watch "Eclipse build path library not being updated" New topic
Author

Eclipse build path library not being updated

Melinda Savoy
Ranch Hand

Joined: Jun 21, 2005
Posts: 386

In my web app workspace I have 7 projects that reference the Apache Tomcat lib directory (C:\server\Tomcat 6.0\lib), in each project's buildpath. I updated 1 of the jars in the tomcat lib directory but when I go to the .class file in the jar that I updated via Eclipse IDE I still see the old version of the class file.

I can go directly to the file system and view the class file in my updated jar and confirmed that it has the updated class file. So I'm not sue why Eclipse is not showing the updated file. When debugging my code the OLD .class file comes up when I hit the breakpoint.

I've refreshed each project and did an individual build on each project but it's not updating the file referenced in Eclipse build path which is C:\server\tomcat 6.0.

Any suggestions on how to remedy my problem would be appreciated. BTW, my version of Eclipse is 6.0.18.


Melinda Savoy
Ranch Hand

Joined: Jun 21, 2005
Posts: 386

Does anyone know if this is a bug in this version, 6.0.18, of Eclipse?
Jesper de Jong
Java Cowboy
Saloon Keeper

Joined: Aug 16, 2005
Posts: 14074
    
  16

Version 6.0.18 of Eclipse? That's strange. The latest version of Eclipse is 3.7.1.

6.0.18 sounds like a version number of Tomcat.


Java Beginners FAQ - JavaRanch SCJP FAQ - The Java Tutorial - Java SE 7 API documentation
Scala Notes - My blog about Scala
Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 18541
    
    8

I found that when my project (X) had another project (Y) in its build path, then jars in that other project's (Y's) build path took precedence over jars in my project's (X's) build path. Drove me crazy for half a day when I was trying to test with different versions of JavaMail.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Eclipse build path library not being updated
 
Similar Threads
NoClassDefFound Error in an Eclipse Export
New comer's qz
Question on JAR file in Tomcat\lib directory
handling CLOB from java
Eclipse not seeing updated JAR in tomcat\lib library at runtime