On Dec 21, 2004, at 3:27 AM, Mieke Banderas wrote:
Greg Guerin said:
First, look in xmlpad.jar:
jar xf xmlpad.jar META-INF
That will extract everything in the META-INF dir of the jar, which
includes
the manifest if there is one. If there isn't one, then you know
that's the
problem. If there is one, then open it in TextEdit and see what's in
it
It just says this:
"Manifest-Version: 1.0
Created-By: 1.4.1_01 (Sun Microsystems Inc.)"
So no main then I suppose. I kinda expected OS X to support
mainclassless
jars, if those are allowed on other platforms.
You expected right. MacOS X supports exactly the same format of
manifest that other platforms do. In this case, the manifest does not
contain a main class attribute, thus Java does not know what class's
main to run.
Since this jar does not have a main class attribute, you have to tell
it the correct main class. This should be in the xmlpad documentation
somewhere.
Is a main class mandatory
with the Hotspot JVM that OS X use?
It is mandatory for EVERY jvm, if you want it to run without telling
java the main class explicitly.
Scott
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Java-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/java-dev/email@hidden