• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Debugging web started application

 
Ranch Hand
Posts: 472
Objective C Ubuntu Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ]
 
Ranch Hand
Posts: 243
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Objective C Ubuntu Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks, it's helpful.
 
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
reply
    Bookmark Topic Watch Topic
  • New Topic