I have problems running a jar file that I have created, I get an error message as follows: "Could not find the Main Class. Program will exit."
Another jar file gives me a message:"Fatal exception occured. Program will exit."
I suspect I am not creating the manifest file correctly, I hope someone can help as there is not a lot of info available on this subject.
Here is an example of what I have done:
in the above directory I have the following files: Main.class Ball.class Paddle.class
pongGame.html bounce.au and error.au MANIFEST.MF
my manifest file contains:
I made sure that I included the carriage return in the manifest file before saving it.
This is what i entered to create the jar file:
c:javaGreg003jar cmf MANIFEST.MF pongGame.jar Main.class Ball.class Paddle.class BasicPong.html bounce.au error.au
This creates the pongGame.jar file in the directory but I cannot run the program by double clicking the icon.It gives error "Fatal exception occured.Program will exit". I also tried to run it by entering java -jar pongGame.jar
This gives me the following error: "Exception in thread "main" java.lang.NoSuchMethodError: main
This program runs perfect when run the normal way in internet explorer.
I also tried a few programs that dont use an html file but also did not have any success, I have looked at other messages in this message board and tried a few things without success. Hope someone can help!!