jar file manually instead of using Eclipse. The actual program isn't anything too complicated - it's a simple "snake" game using Swing (plus the code all works when run from inside Eclipse).Īny ideas what is causing this error and how I can fix it? Let me know if there's any other information I should provide. A few image and text files that I use also appear in the jar file. class files, including the class that contains the main method. There is a folder with my package name, which contains all the. jar file everything seems to be in order - the manifest looks something like: Manifest-Version: 1.0Īnd is in the META-INF folder. Program will exit."Īs I mentioned, I tried exporting to both JAR options, I specified the correct class that the main method is in, and when I look through the actual files in the. jar file is created, but when I double click on it to try to run the program it gives me an error that says "Could not find the main class: package.MainClassName. When I try to export it to either a "JAR file" or "Runnable JAR file" the. I have a java project that works perfectly fine when running it from within Eclipse.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |