Possible Duplicate:
How to create a .jar file that actually runs?
The computer can't find the main class when I turn my classes into a jar file. I can run it from the command line but not by double clicking it! When i double click it, it says Can not find main class: robert.Start (Start is my main class!) Can someone help me please? I have a manifest file and everything and this is whats written in it
Manifest-Version: 1.0
Class-Path: .
Main-Class: robert.Start
And my directories are like this:
inside the Interest.jar there is:
META-INF
robert
Inside robert are my classes
Can someone help me please? even when i don't create the manifest file manually it still does not run!
I am using windows 7.
I figured out the problem. It is when i run the program with jre7 it doesn't work. BUT with jre6 it works fine! I wonder why :/