| Author |
Debugging web started application
|
D Rog
Ranch Hand
Joined: Feb 07, 2004
Posts: 471
|
|
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 ]
|
Get power of your iPod with MediaChest | Minimal J2EE container is here | Light weight full J2EE stack | My blog | 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: 471
|
|
|
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
|
 |
 |
|
|
subject: Debugging web started application
|
|
|