Capture logging with Web Start on Mac OS X
I am running a java web start application. It crashes on start up. There's lots of useful information in the java console. However, once WebStart crashes, the console window closes and all my lovely logging information is gone. I haven't been able to find a way to capture that log info.
The web server, that's providing the web start code, delivers a file to the mac. I start the java app by clicking on the file. The splash screen comes up and then it crashes. Is there a simple way, with out changing the code in the java app to force the redirection of that output stream to a log file somewhere? I haven开发者_JAVA百科't been able to find any documentation that says this is possible.
I want all the information that gets printed to the java web start console screen, but in a file.
- Open the Java control panel
- Click on the Advanced tab
- Under Debugging, enable tracing and logging
- Run your JWS application (
javaws -viewer
is easy if it's already downloaded) - Let it crash or whatever
- Find your log file in
~/Library/Application\ Support/Oracle/Java/Deployment/log
精彩评论