Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.programmer > #27959 > unrolled thread

debugging Java Web Start

Started byRoedy Green <see_website@mindprod.com.invalid>
First post2014-04-05 12:41 -0700
Last post2014-04-05 15:47 -0700
Articles 2 — 2 participants

Back to article view | Back to comp.lang.java.programmer


Contents

  debugging Java Web Start Roedy Green <see_website@mindprod.com.invalid> - 2014-04-05 12:41 -0700
    Re: debugging Java Web Start firstsql@gmail.com - 2014-04-05 15:47 -0700

#27959 — debugging Java Web Start

FromRoedy Green <see_website@mindprod.com.invalid>
Date2014-04-05 12:41 -0700
Subjectdebugging Java Web Start
Message-ID<61n0k9911baggmm7g4anvqqine4ng58tlb@4ax.com>
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?
-- 
Roedy Green Canadian Mind Products http://mindprod.com
"The question of whether machines can think is about as relevant 
as the question of whether submarines can swim"
~ Edsger Wybe Dijkstra (born: 1930-05-11 died: 2002-08-06 at age: 72)

[toc] | [next] | [standalone]


#27960

Fromfirstsql@gmail.com
Date2014-04-05 15:47 -0700
Message-ID<ec05c820-9f9d-467c-8d8f-79b22e2a2b66@googlegroups.com>
In reply to#27959
On Saturday, April 5, 2014 12:41:32 PM UTC-7, Roedy Green wrote:
> 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.

-- 
Lee Fesperman, FirstSQL Software (http://www.firstsql.com)
=============================================================
* Pure Java implementation, runs on cellphones to mainframes
* FirstSQL/J Object/Relational DBMS (http://www.firstsql.com)

[toc] | [prev] | [standalone]


Back to top | Article view | comp.lang.java.programmer


csiph-web