开发者

Any Java IDE which can quickly establish a local project based on a remote JNLP file for instant debugging?

Given a remote JNLP which works (all jars are available etc) but you need to run a debug session on the code.

Is there any facility that easily allows you to create a local project in ANY reasonably modern IDE which consists of a local copy of the resources stated in the JNLP and can run said code in debug mode? Assume that a decompiler is available so it is just a matter of getting the debug session running.

Are there any IDE's (Eclipse, Netbeans, IntelliJ, JDevelop开发者_如何学Goer, etc. etc. - even a commercial offering) which can do this just given the JNLP URL?


I have a pre-defined project in Eclipse which is blank except for a utility that parses a JNLP file and downloads all the jars specified in the jnlp codebase. Optionally, you can replace any jars with updated code you want to test here. It uses reflection to add all the jars to the classpath (which is a hack) and then reflectivly invokes the main method of the class specified as the main-class in the JNLP with any arguments.

Unfortunately I can't share the source for this but it only took me a day to get it running.

The class path hack is available here: How should I load Jars dynamically at runtime?

Should work well with any debugging.


I am facing a similar problem with a JNLP program. The only way I found to debug the program is by debugging into Eclipse (I have the project and the code source) and copy-pasting all parameters passed by the JNLP file in the Arguments tab into Debug configuration in Eclipse. I don't know if this is related because my problem came from the arguments passed to the application through JNLP file.

I don't understand something... Why you want to debug directly on the compiled code from the final location?

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜