debugging Java Web Start

R

Roedy Green

The only way I have been able to debug Java Web Start JNLP apps is to
strip out the Webstart code turning them into ordinary apps, debug,
then put it back. Is there an easier way?
 
F

firstsql

The only way I have been able to debug Java Web Start JNLP apps is to

strip out the Webstart code turning them into ordinary apps, debug,

then put it back. Is there an easier way?

I didn't have that problem because I wanted my app to run on Web Start and as a pure standalone app. I had my Web Start configuration set a -jnlp toggle to tell the app what to do.

I also didn't want to sign my app. I used the Web Start classes that only asked for permission when you wanted to access the file system. I used Class..forName() to load my file system system code, driven by the -jnlp toggle. BTW, I love Class.forName(). With judicious coding, it can support all the dynamic loading you need without the nastiness of java.lang.reflect. However, I have an extra reason --- I usually want my code to run on JVMs that don't support java.lang.reflect. I call it "poor man's" reflection.

Of course, this may be more than you want to do to get easier debugging.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,982
Messages
2,570,189
Members
46,735
Latest member
HikmatRamazanov

Latest Threads

Top