零碎知识总结

上一篇 / 下一篇  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

举例说明:

  1. Install JavaFX SDK

  2. goto %JAVAFX_HOME%\samples

  3. copy one sample archive (for exampleDisplayShelf) to a location where you can expand, say for example \\FxSamples

  4. cd \\FxSamples\DisplayShelf

  5. 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.

  6. package theDisplayShelfsample application using a command like:

    javafxpackager -src src -appClassdisplayshelf.Main-keyStore FxKeystore -keystorepassword xyz789 -keyalias FxKey -keyaliaspassword abc123 -sign

  7. javafxpackager should produce under the dist directory a jaralong with a corresponding applet (in an html file) and a jnlp file.

Expected :

  1. Loading the html or the jnlp file should start the applet/web start.
  2. Verify that the loaded application is signed.The applets and jnlp should prompt the security dialog with the specific signing details.
  3. Make sure there is no exception  shown in java Console while loading an applet or webstart application.

TAG:

 

评分:0

我来说两句

日历

« 2023-12-22  
     12
3456789
10111213141516
17181920212223
24252627282930
31      

数据统计

  • 访问量: 55587
  • 日志数: 89
  • 建立时间: 2008-12-13
  • 更新时间: 2010-01-13

RSS订阅

Open Toolbar