How to update external Jars in an Eclipse (Java) project?

I have a Java project in Eclipse that includes a couple of external jar files. These external jar files are rebuilt using another process (not Eclipse, Ant). These changes are not reflected in the Eclipse project, even if I update the project. If I close the project and open it again, it works.

Any suggestions on how I can speed up a project without closing and opening it again? Thanks.

+7
java eclipse jar refresh project
source share
5 answers

Try right-clicking on the project and select update. If this does not work, go to the Project menu, clean and check your project.

+4
source share

In the package explorer view, you can select a jar and right-click and update.

Not available in Eclipse Version: 3.6.1, Build id: M20100909-0800. I think the current version. Reported error IMHO.

Restarting Eclipse is working.

+2
source share

In the package explorer view, you can select a jar and right-click and update.

+1
source share

If the answers above did not work for you, and this jar is on the way to build. Follow these steps:

1- remove the jar from the assembly path (right-click on the jar β†’ assembly path β†’ remove from assembly path)

2- add the jar to the assembly path (right-click on the jar β†’ Assembly path β†’ Add to assembly path)

This worked for me and is much easier than restarting Eclipse.

0
source share

If updating a project, cleaning up a project, updating a fixed jar (F5) does not work, it is possible that the Maven dependency is still referencing the old version. If your project uses Maven, temporarily remove this jar from the Maven Dependencies list (you can update it later). It worked for me.

0
source share

All Articles