Original Post
Hey everyone, I'm having trouble exporting my first game as a .jar file, Here are the steps I'm using:
(I'm using eclipse)
Right-click on my project, click export.
Select type "JAR File".
Select my whole project, making sure all necessary files are selected.
Generate the manifest, select my main class as the main class.
Click finish, finishes exporting without any errors
Double click on the file that was just exported, and it gives me the error: "Could not find the main class: slickGame.src.MainClass. Program will exit."
Right click on .jar, open with WinRAR, go to META-INF, edit the manifest, everything is in order.
Contents of the manifest:
"Manifest-Version: 1.0
Main-Class: slickGame.src.MainClass
" (Yes there is a newline after.)
I'm not sure what is going wrong, I've tried searching but everything just tells me to edit the manifest which is already correct.
Not sure if this matters, but I'm using the Slick2D Library (hence the name slickGame.)
I'm also packaging the files for those to work. (dlls, slick.jar, and lwjgl.jar)
Any help is appreciated, thanks in advance.
(I'm using eclipse)
Right-click on my project, click export.
Select type "JAR File".
Select my whole project, making sure all necessary files are selected.
Generate the manifest, select my main class as the main class.
Click finish, finishes exporting without any errors
Double click on the file that was just exported, and it gives me the error: "Could not find the main class: slickGame.src.MainClass. Program will exit."
Right click on .jar, open with WinRAR, go to META-INF, edit the manifest, everything is in order.
Contents of the manifest:
"Manifest-Version: 1.0
Main-Class: slickGame.src.MainClass
" (Yes there is a newline after.)
I'm not sure what is going wrong, I've tried searching but everything just tells me to edit the manifest which is already correct.
Not sure if this matters, but I'm using the Slick2D Library (hence the name slickGame.)
I'm also packaging the files for those to work. (dlls, slick.jar, and lwjgl.jar)
Any help is appreciated, thanks in advance.