• 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

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

 
Ranch Hand
Posts: 129
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Sheriff
Posts: 14691
16
Eclipse IDE VI Editor Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 2234
Eclipse IDE Firefox Browser Redhat
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 .
 
author
Posts: 5856
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Don't sweat petty things, or pet sweaty things. But cuddle this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic