Error creating Runnable jar in eclipse

10,126

Solution 1

I had same problem, and solution is fairly easy. Just right-click to your project, select Properties -> Java Build Path, then open Libraries tab, click on Add External JARs and then select all of the libraries you need (the ones that you got the error message, in my case it was derbyclient.jar), confirm with OK. Then in Package Explorer you will get Referenced Libraries and there will be all of additional libraries that you need to export project into runnable JAR:

enter image description here

From unknown reasons Eclipse will not add them automatically even if you configured them properly in Project -> right click -> Run As -> Run Configurations -> Classpath tab. You have to add manually all of the libraries that you need with Add External JARs

Solution 2

I was able to solve this issue by deleting the .project and .classpath, etc hidden files created by eclipse in my project directory. And then closing the project and importing the project a new.

I took 2 days to solve this.But this works!

Share:
10,126

Related videos on Youtube

Srikanth M
Author by

Srikanth M

Updated on June 04, 2022

Comments

  • Srikanth M
    Srikanth M almost 2 years

    I have a project that I'd like to make a Runnable Jar from. I have a Run Configuration that works from within Eclipse. When I try to Export a Runnable Jar, I get this error for every .jar the project uses: "Fat Jar Export: Could not find class-path entry for "

    Any ideas on what I need to do to make this work?

    • Mustafa sabir
      Mustafa sabir almost 10 years
      can you please post the complete error Fat Jar Export: Could not find class-path entry for.... fill the dots. Because sometimes that error is related to mysql connector jar
    • Tusar
      Tusar almost 10 years
      You can check the class path by opening your jar file in WinRar. check META-INF/MANIFEST.MF in side jar.