如何在Java Web Start(JNLP)下调试应用程序? [英] How can I debug applications under Java Web Start (JNLP)?

查看:162
本文介绍了如何在Java Web Start(JNLP)下调试应用程序?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我知道如何使用Eclipse调试远程Java VM,但是如何使用Java Web Start程序来实现。我有一个问题,只发生在Java Web Start。它必须与安全相关。



我需要一个可以与当前Java VM一起使用的解决方案,如1.6.0_12。

解决方案

与要远程调试的任何其他Java进程完全一样:您必须为VM设置一些参数( -Xdebug -Xnoagent -Xrunjdwp:transport = dt_socket,server = n,suspend = y,address = 12345
),然后连接到给定的端口。在Java webstart 6.0中,可以通过环境变量JAVAWS_VM_ARGS在早期版本中使用-J选项。查看详情 here


I know how I can debug a remote Java VM with Eclipse, but how can I do it with a Java Web Start program. I have a problem that only occurs in Java Web Start. It must be security related.

I need a solution that will work with a current Java VM like 1.6.0_12.

解决方案

It's quite the same like with any other Java process you want to debug remotely: You have to set up some arguments for the VM (-Xdebug -Xnoagent -Xrunjdwp:transport=dt_socket,server=n,suspend=y,address=12345 ) and then connect to the given port. In Java webstart 6.0 this can be done with the -J option, in earlier version via environment variable JAVAWS_VM_ARGS. See details here.

这篇关于如何在Java Web Start(JNLP)下调试应用程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆