[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.newcomer] Re: Newbie help with SWT

Dennis Williams wrote:
The manifest file contains the following:
Manifest-Version: 1.0
Main-Class: my.pkg.SWTTest

It does have a newline after the Main-Class line, but when I double click on it, I get the JVM Launcher message "Could not find the main class. Program will exit." As a temporary fix, I have a shortcut to the jar file with the command line parameters set, but this is hardly ideal. I'd like to ensure that this is an encapsulated package that can be simply run from another machine with the Java runtime installed.

That's somewhat strange. It does read the Main-Class property because you don't get the error like "Couldn't load the Main-Class property***". But it can not find the main class via the Main-Class string you supplied. Maybe you added some unexpected characters. If you could, send the .jar file to me ...

--
JACK YAO, Beijing, China