Consider creating the jar file separately with cvfM options (M, not
'm'!!!), so that jar wouldn't put the default manifest file inside.
After the jar is created, rename it into zip and add the MANIFEST
directory (with manifest.mf in it) to the root of the ?.zip files.
Rename ?.zip back into ?.jar. This should work.
The reasons for doing such a hook is that i never succeeded in placing
already created .mf file inside the .jar during construction time of
the latter: for some reason jar.exe always put the default .mf file,
no matter what the flags are. U can easily check it out by extracting
the contents of your .jar file created with cfvm parameters and
looking at .mf file.
Hope that helped.
-=V=-
>-------<=============>-------<
Join in Java community now!
http://JavaCafe.VirtualAve.net/
>-------<=============>-------<
In your previous letter u wrote:
--------------------------------
RJCB> Problem: how to create an executable jar-file that will run by double-clicking
on it?
RJCB> I have tried the following on the HelloUniverse example:
RJCB> 1. Create a manifest.mf file containing the line: "Main-Class: HelloUniverse"
RJCB> 2. Run "jar cvfm SimpleUniverse.jar manifest.mf *.class"
RJCB> If I double-click on SimpleUniverse.jar the JVM tells me it could not find the
main class. However I am able to run the same jar by typing "java -jar HelloUniverse"
from a command prompt, but
RJCB> this is not very friendly to use for my users. Note that this problem does not
occur with non-J3D applications or any of the Java2 demo's because they run just fine
by double-clicking on it.
RJCB> Any ideas?
RJCB> - Rudolf
RJCB> PS. I am using JDK 1.3 beta and J3D 1.2 alpha on Windows 98.
===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JAVA3D-INTEREST". For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".