1

When I run the project IDE it compiles fine and runs through IDE but when I export it as a jar file. I get -fat java export: could not find class path entry for my project folder location. I couldn't figure whats causing this issue. Suggestions and solutions are welcome.

  Exported with compile warnings: 
  Jar export finished with problems. See details for additional information.
    Fat Jar Export: Could not find class-path entry for 'C:Users/sivap/OneDrive/Desktop/eclipse workspace/Eclipse Workspace PITCON - To Edit - Copy/Questron'
fabian
  • 80,457
  • 12
  • 86
  • 114
  • there might be some non existing jar added to the classpath refering to _C:Users/sivap/OneDrive/Desktop/eclipse workspace/Eclipse Workspace PITCON - To Edit - Copy/Questron_ location. Check and if required re add from a valid location or delete it from the class path entry – Ahmad Qureshi Oct 03 '19 at 12:03
  • i checked it they all are needed to run the program otherwise they give an error. I am also getting duplicate entries in my classpath file and project file generated in the message but when i see in the folder the duplicates are not there. – Siva Prashanth Oct 03 '19 at 13:49
  • i also got duplicate entry message for all the classes i have in my project and the previously working workspaces stoppped working which were working fine. anywhere to think about what would have happened – Siva Prashanth Oct 03 '19 at 15:47
  • Your classpath is refering to some libraries that are required but it do not exist on the specified location. Delete all the entries of duplicates and the libraries not in the directory and then add them again but this time they should refer to a valid location – Ahmad Qureshi Oct 04 '19 at 06:02
  • This is what my classpath is like and if some libraries are not there then the project turns red and it wont run inside the IDE itself. – Siva Prashanth Oct 04 '19 at 13:42
  • @AhmadQureshi i did what you said but im still having the issue. – Siva Prashanth Oct 05 '19 at 01:31
  • @Siva Prashanth check out these two links https://help.eclipse.org/kepler/index.jsp?topic=%2Forg.eclipse.jdt.doc.user%2Ftasks%2Ftasks-37.htm and https://www.java67.com/2014/04/how-to-make-executable-jar-file-in-Java-Eclipse.html – Vector Oct 15 '19 at 01:30
  • thank you what about duplicate classpath and project warning when i export the jar – Siva Prashanth Oct 15 '19 at 19:50

0 Answers0