部署 五、把包放到服务器webapps目录中,签名、打key keytool -genkey -keystore mykeystore -alias jwstest1 jarsigner -keystore mykeystore jwstest.jar jwstest1 ? 六、Jnlp文件Test.jnlp <?xml version="1.0" encoding="UTF-8"?> <jnlp spec="1.0+" codebase=http://localhost:8080/test?//网站根目录 ?href="Test.jnlp">???//目标地址 ???????<information> ?????????????????<title>HelloWorld</title>???//名称(可随意) ?????????????????????<vendor>Sun Microsoft Corporation</vendor>????//公司名(随意) ?????????????????????<homepage href=""/> ??????????????????????<description>HelloWorld Test Example for WebStart.</description> ??????????????<offline-allowed />????//允许用户离线运行。应允许??? ???????</information> ??????? ???????<resources> ??????????????<j2se version="1.5+" /> ??????????????<jar href="Test.jar" /> ???????</resources> ??????? ???????<application-desc main-class="HelloWorld" />??//运行的主类 ??????? ???????<security> ??????????????????<all-permissions/>????//允许应用程序访问本地资源 ????????????</security> </jnlp> ? |