Here goes…
Step 1:[/b]
You’'ll need to jar up a few system and jni files. Run the following commands from Spark/lib/windows and Spark/resources:
C:\jar cf jdic-native.jar IeEmbed.exe jdic.dll MozEmbed.exe tray.dll
/code
C:\jar cf jni-native.jar jniwrap.dll jniwrap.lic
/code
Step 2:[/b]
You’'ll need to sign all the Spark jar files. Go to the lib directory of your Spark installation. Type:
keytool -genkey -alias spark[/b]
If you don’‘t already have a keystore password, you’'ll be promted to create one. Make your way through the rest of the prompts. The last prompt will ask you to '‘Enter key password for ‘’ - for this example I used ‘‘password’’ (without the single quotes). Note also if this is your first time running the keytool, you’‘ll be asked for a storepass - we’‘ll assume that’'s also set to ‘‘password’’.
Now that the key has been generated, we need to sign the jar files. I usually make a .bat file and put it in the top level directory of whatever it is I’'m signing (Spark in this case). Heres a look at the .bat file I created and:
jarsigner -storepass password -keypass password lib/activation.jar spark
jarsigner -storepass password -keypass password lib/base.jar spark
jarsigner -storepass password -keypass password lib/spark.jar spark
jarsigner -storepass password -keypass password lib/smack.jar spark
jarsigner -storepass password -keypass password lib/smackx.jar spark
jarsigner -storepass password -keypass password lib/smackx-debug.jar spark
jarsigner -storepass password -keypass password lib/windows/jdic.jar spark
jarsigner -storepass password -keypass password lib/windows/jdic-native.jar spark
jarsigner -storepass password -keypass password resources/jni-native.jar spark
/code
Step 3:[/b]
Next, you’‘ll need to create the JNLP file. This file is what Java WebStart uses to launch the application. This file could be put anywhere - I’‘ve located it in the Spark directory. Here’'s the JNLP file:
/code
Step 4:[/b]
All you need now is a link to the JNLP file on a web page so that users can launch the application.
-Ken
Edited by kenneth.orr