Failed to export any of my projects to .jar file

Every time I try to export any projects from my workspace to a java jar file, I get an error message:

Failed to create JAR. See Details for more information. Class files on the class path were not found or are not available for: "Server Manager /src/me/Zahach/ServerManager/main.java"

And this error is repeated for every class in my project.

I tried reinstalling Eclipse, this did not work. Then I tried to recreate the project and drag my packages into it, and that didn't work either.

What's happening?

+4
source share
6

.class .java

  1. Goto Project->Clean Rebuild , ,
    , , bin main.java .class

  2. , , Classpath

+5

, . Eclipse Maven. , , sudo chmod 777 -R workspace/MyProject

+1

java jar, Java , , , , , java .

0

, . - my_file.class. , , , "my_file" , .

0

java , . -Name.java, . , -, . . :) Thumbs up

0

Java, .

0

All Articles