Creating an excutable jar file using eclipse

My project works great with Eclipse.

But when I tried to make it into a jar file or an executable file, it does not work.

I used the parameter "Export-Runnable JAR file"

The following message appears immediately after the eclipse of the export process is completed.

JAR export completed with jewelery, see details.

the details were ..

Exported with compilation warnings: Mario / src / Map.java

and the same for other classes such as

Exported using compilation warnings: Mario / src / Player.java

etc.

So I used another option "Export - JAR file"

It works fine and doesn't display anything when exporting from Eclipse.

But when I try to open the file, it gives me

Couldn't find the main class: Frame.Program will exit

- , ?

+3
2

MANIFEST.MF META-INF Main-Class, .

+4

jar - Manifest. ,

+4

Source: https://habr.com/ru/post/1795198/


All Articles