Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
The moose likes JNLP and Web Start and the fly likes Debugging web started application Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JNLP and Web Start
Bookmark "Debugging web started application" Watch "Debugging web started application" New topic
Author

Debugging web started application

D Rog
Ranch Hand

Joined: Feb 07, 2004
Posts: 472

My application rises an exception at attempt to load resource, so I want to debug it. When it started from command line it uses log file created in current directory. Questions:
1. Where can I find any files related to web started app? user.home/Application Data/Java gives nothing (sorry clients Windows platform)
2. Where is a current directory I can find my files?
3. Is any web start console available?
Edit: I found answers:
1: "$user.home\Application Data\Sun\Java\Deployment\cache\javaws\http\Dwebstart_url"
2: desktop

[ May 21, 2005: Message edited by: D Rog ]
[ May 21, 2005: Message edited by: D Rog ]

Retire your iPod and start with HD Android music player Kamerton | Minimal J2EE container is here | Light weight full J2EE stack | and build tool | Co-author of "Windows programming in Turbo Pascal"
Jared Cope
Ranch Hand

Joined: Aug 18, 2004
Posts: 243
Hi,

There is an option in the webstart application manager to turn on logging for applications. If you do this, then you can get at the log files from the directory: C:\...\Application Data\Sun\Java\Deployment\log\

This logging traps all output sent to the console (your standard System.out calls), so should get your exception too.

A console is actually available if you use webstart via Java 1.5. You can turn on the console and see things output there as your application runs. I don't think the option is available pre 1.5 though.

Cheers, Jared.


SCJP 1.4 91%, SCJP 1.5 88%, SCJD B&S
D Rog
Ranch Hand

Joined: Feb 07, 2004
Posts: 472

Thanks, it's helpful.
Ed Ewing
Greenhorn

Joined: Aug 30, 2005
Posts: 29
By the way, the console does exist in web start version 1.4 as well.

To turn it on, start the WebStart Application Manager (type "javaws" in a command line, for example, or click on player.jnlp)

In version 1.4, go to File->Preferences->Advanced->Show Java Console
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Debugging web started application
 
Similar Threads
Webspere 345 exam questions
Passed 700,701 and 340 last Thursday
Test 340 Answers
Websphere Portal - Test 399
IBM Test 340