Two Laptop Bag*
The moose likes JNLP and Web Start and the fly likes Log file for JNLP application Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JNLP and Web Start
Bookmark "Log file for JNLP application" Watch "Log file for JNLP application" New topic
Author

Log file for JNLP application

Carl John
Ranch Hand

Joined: Jun 14, 2010
Posts: 47

Hi

I'm developing a Java Swing application and enabled them with Java web start feature.

Currently, i'm logging the events in a log file and saving them in jre folder.

Is this a correct way of logging an application?

If not where can i save the log files?

CJohn
Richard Tookey
Ranch Hand

Joined: Aug 27, 2012
Posts: 1037
    
  10

Carl John wrote:I'm developing a Java Swing application and enabled them with Java web start feature.

Currently, i'm logging the events in a log file and saving them in jre folder.

Is this a correct way of logging an application?

No - depending on how and where the JRE is installed that folder may be write protected.

If not where can i save the log files?

For applications I create a hidden directory in the user's home directory. Typically I use the application's name prefixed by a '.' .

Note - you do realise that with the latest WebStart security model you will either have to purchase a CA signed certificate or get the user to install your self signed certificate in his cacerts file before he can run your WebStart application.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Log file for JNLP application
 
Similar Threads
Saving Java Console output to file
Display file contents on jsp page
java.util.logger -
Better Approach - User restriction level setting through Properties file
Help with log4j viewer