Eugene,
My comment was :
Change your main class specification to use slashes, not dots:
Main-Class: packagename/ui/mainclassname
You said:
[QUOTE
This is simply wrong info, -- it should be dot delimited.
Are you sure this is wrong ? I have 2 examples on my website where this technique does work. I too had originally tried using dots and DID have a CR at the end of the line without success. Finally, in frustration, I searched Sun's site for the documentation on the JAR format specification of Main-Class. Here is what I found at
JAR guide.
# attribute defined for stand-alone applications
This attribute is used by stand-alone applications that are bundled into executable jar files which can be invoked by the java runtime directly by running "java -jar x.jar".
* Main-Class :
The value of this attribute defines the relative path of the main application class which the launcher will load at startup time. The value must not have the .class extension appended to the class name.
Unfortunately, they don't show any examples. The words "relative path" is what led to me to try slashes. It worked. If you want to see for yourself, take a look at my
Golf HandicapTracker Application. It contains the executable jar file for a small Swing app that has the following Manifest.mf file:
I have tried this on a several PC's running different flavors of Windoze. I used the same technique on another application with a more deeply nested Main class path name and it also works. If this method is wrong, why is it working ? Are not paths separated by slashes ?
If anybody can shed some light on this, I would really like to hear about it.
kktec
SCJP1.4 & SCWCD