零碎知识总结
上一篇 /
下一篇 2009-07-31 11:12:14
/ 个人分类:java fx
一. 检查jar文件是否被signed:
cd 到jarfile所在的目录内,如C:\Program Files\JavaFX\javafx-sdk1.2\bin内。
然后输入命令jarsigner -verify jarfile, 就会显示jar文件是否被signed。如:jarsigner -verify jmc.jar
二. javafxpackager using specific keystore
举例说明:
Install JavaFX SDK
goto %JAVAFX_HOME%\samples
copy one sample archive (for exampleDisplayShelf) to a location where you can expand, say for example \\FxSamples
cd \\FxSamples\DisplayShelf
Generate an FxKeyStore keystore using the following command:
keytool -genkey -dname "cn=FX packager,ou=CSG,o=SMI,c=US" -alias FxKey -keypass abc123 -keystore FxKeyStore -storepass xyz789 -validity 365
Make sure you have JDK\bin in your path.
package theDisplayShelfsample application using a command like:
javafxpackager -src src -appClassdisplayshelf.Main-keyStore FxKeystore -keystorepassword xyz789 -keyalias FxKey -keyaliaspassword abc123 -sign
- javafxpackager should produce under the dist directory a jaralong with a corresponding applet (in an html file) and a jnlp file.
Expected :
- Loading the html or the jnlp file should start the applet/web start.
- Verify that the loaded application is signed.The applets and jnlp should prompt the security dialog with the specific signing details.
- Make sure there is no exception shown in java Console while loading an applet or webstart application.
收藏
举报
TAG: