• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Henrique Ordine
Ranch Hand
Posts: 129
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Try to right click on the folder where your libs are, and select refresh.
 
Henrique Ordine
Ranch Hand
Posts: 129
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 2234
Eclipse IDE Firefox Browser Redhat
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 .
 
Peter Johnson
author
Bartender
Posts: 5852
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Henrique Ordine
Ranch Hand
Posts: 129
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 129
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic