Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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, JDeveloper, etc. etc. - even a commercial offering) which can do this just given the JNLP URL?

like image 793
Thorbjørn Ravn Andersen Avatar asked Feb 28 '11 12:02

Thorbjørn Ravn Andersen


People also ask

How to open jnlp file using Java?

Right-click a JNLP file and click “Open With.” Select the “Java Web Start Launcher” application in the list or click “Browse,” browse to the “C:\Program Files (x86)\Java\jre[version]\bin” folder on your computer and double-click the “Javaws.exe” program file.

Where is Java Web Start on windows 10?

From the 'Windows Start' menu, type 'javaws' and click 'Run command'. This will show Java Web Start Launcher as a selectable app for Step 4. 1. Install the latest version of Firefox.


1 Answers

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.

like image 113
S. Fitch Avatar answered Nov 14 '22 23:11

S. Fitch