开发者

How to debug Java Web Start applications?

开发者 https://www.devze.com 2022-12-22 01:47 出处:网络
I have a Java Web Start Applicatio开发者_运维技巧n that I launch from live site by downloading a tailored JNLP file.

I have a Java Web Start Applicatio开发者_运维技巧n that I launch from live site by downloading a tailored JNLP file.

The problem is that once the Java Web Start application has loaded, the application quits without any warning. I know that the certificate is OK since when I enable "Show site certificate from server even if it is valid" option from Java settings, it displays a message correspondigly.

I have tried enabling all debugging settings from Java settings ("Enable tracing", "Enable logging", "show applet lifecycle exceptions") and also Java console, but with no luck caching the problem.

Could anyone with more experience on Java Web Start development/debugging give any tips?


You can launch a Web Start program form the command line using javaws, and pass JVM options with the -J flag.

Use a debugger to connect to that process:
http://java.sun.com/j2se/1.5.0/docs/guide/javaws/developersguide/troubleshooting.03.06.html

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号