java web start 问题汇总

  1: 运行java web start所需的jar文件都需要签名才能通过,如果jar包里有中文文件名可能用jarsigner能使签名通过,但java web start还是不能运行程序。

  2: 如果运行程序所需的有些jar包已经签名,则需删除(看看jarsinger包里都多了些什么文件就知道怎么删除了)这些签名换上统一的签名,或者替换这些jar包为未签名的同一种jar包,然后再jarsigner置换成和其他包一样的签名。

 

  3: 所有jar包的签名必须是同一时间的,因此签名前先删除以前签名过的jar包,避免有些jar包中的文件没有修改就不在签名而导致java web start启动时候的签名不一致的问题。

 

  4: 如何debug java web start 程序

  To debug a WebStart application in Java 6, start to enable remote debugging;

  C:/Programme/java/jre1.6.0_01/bin/javaws.exe -J-Xdebug -J-Xnoagent
   -J-Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=8200
   c:/foo.jnlp

  To achieve the same with Java versions prior 6 (1.4, 5), set the environment variable JAVAWS_VM_ARGS to the arguments above, but only write ‘-J’ once before the first argument.
set JAVAWS_VM_ARGS=-J-Xdebug -Xnoagent
   -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=8200
C:/Programme/java/jre1.6.0_01/bin/javaws.exe c:/foo.jnlp
if you use “suspend=y” instead of “suspend=n”, then the application will wait for the debugger to connect, before it starts up. your choice depends on what you want to debug in your application.
also important, make sure the JNLP file is a local file (”c:/foo.jnlp”) and not specified as a URL (”http://foo.com/foo.jnlp”). As this does not work.

if JNLP file has spaces, should enclosed with double quotes.

  Then connect your debugger like eclipse remote debugger to the specified port (here: 8200), if connected, then you can debug the application in eclipse

  If the debugger cannot connect, verify with netstat that no Personal Firewall or AntiVirus is blocking the connection.

 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 1
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值