Hi. In the process of learning Java I have mainly been making very simple programs. But now I actually have a project, still in progress, that I am very proud of so far. Anyways I would like to export it as a runnable JAR (its a game), but I seem to be failing to do so. What I do is, File> Export> Runnable JAR and this comes up:
and I click finish… Seems pretty straightforward. I get a popup saying “JAR export finished without warnings” and everything seems good. But when I try to run it, I get this error: “Could not find the main class:…Program will exit”
I have searched a few forums with people having the same problem, but non of their solutions have seemed to work for me (or I am just doing something wrong). One thing I read is that it could be something with the Environment Variables path. I am aware of how to edit it, but I am not exactly sure what I would need to change (or if it even really matters). The program I am trying to export also uses images and reads info from a txt file. Not really sure if thats a big deal either. Also uses no external libraries or anything like that, just pure Java.
As you can probably tell I am a total n00b and if anyone can walk me through what I should do in the simplest possible way, I would really really appreciate it. Thanks people! =)