This week's book giveaway is in the Jobs Discussion forum.
We're giving away four copies of Java Interview Guide and have Anthony DePalma on-line!
See this thread for details.
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

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » JNLP and Web Start
Bookmark "Debugging web started application" Watch "Debugging web started application" New topic

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

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

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:
subject: Debugging web started application
It's not a secret anymore!