aspose file tools*
The moose likes IDEs, Version Control and other tools and the fly likes Eclipse - Jar file doesn't refresh automatically in build path Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "Eclipse - Jar file doesn Watch "Eclipse - Jar file doesn New topic
Author

Eclipse - Jar file doesn't refresh automatically in build path

Henrique Ordine
Ranch Hand

Joined: Sep 03, 2004
Posts: 127
Hello All,

I have a Web project that depends on the jar file of an EJB project, on Eclipse. When I alter this EJB project and rebuild it's client jar file, I have to remove the jar file from the Build Path of the Web project, and add it back, so that the changes are visible to the Web project.

Is there a faster way for these changes to be visible?

Thank you so much for any help.


J2EE Architect/Developer
Christophe Verré
Sheriff

Joined: Nov 24, 2005
Posts: 14687
    
  16

Try to right click on the folder where your libs are, and select refresh.


[My Blog]
All roads lead to JavaRanch
Henrique Ordine
Ranch Hand

Joined: Sep 03, 2004
Posts: 127
Christophe, thanks for your interest. But I don't see a folder. The jars appear right under my web project. If I refresh the project it doesn't work.

I tried creating a user library and adding the jars to that, and then adding the user library to the project. But when I click on the user library, I don't get a Refresh option on the popup menu.
Ravi Kiran Va
Ranch Hand

Joined: Apr 18, 2009
Posts: 2234

On to the Menu Bar of Eclipse , could you able to see Project Menu ?? Click on the Project Menu and select the Option Clean and proceed . Thanks .


Save India From Corruption - Anna Hazare.
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5772
    
    7

Try this. In the properties for the web project, go to Java Build Path, select the Projects tab, click Add and select the EJB project.


JBoss In Action
Henrique Ordine
Ranch Hand

Joined: Sep 03, 2004
Posts: 127
Thanks for your tips, you guys.

Cleaning the webproject doesn't refresh the changes made to the jars, but adding the ejb project to the Build Path instead of the jar file does.
Henrique Ordine
Ranch Hand

Joined: Sep 03, 2004
Posts: 127
Hello everyone, again.

I've noticed that if I use the Java perspective instead of the Java EE perspective, I get an extra node under my Web Project called Referenced Libraries, where all the jars referenced by the project is included, and if I refresh that node, hurray, the jars are refreshed. Or even if I refresh the entire Web Project the referenced jars are refreshed.

I think that's the folder Cristophe was talking about.

I thought I should share this here since you guys were so helpful.

I still wonder though why that doesn't happen when using the Java EE perspective.

Thanks again.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Eclipse - Jar file doesn't refresh automatically in build path
 
Similar Threads
Error while using lookup
source files are not taking precedence over jars in RAD 7.0
Eclipse and importing JARS
In Eclipse, how to add log4j.properties to classpath ?
[SOLVED] Oracle OCI library already loaded in another classloader exception