Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Debugging web started application

 
D Rog
Ranch Hand
Posts: 472
Linux Objective C Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ]
 
Jared Cope
Ranch Hand
Posts: 243
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
D Rog
Ranch Hand
Posts: 472
Linux Objective C Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks, it's helpful.
 
Ed Ewing
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic