File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Log file for JNLP application

 
Carl John
Ranch Hand
Posts: 47
Eclipse IDE Java Netbeans IDE
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
Richard Tookey
Bartender
Pie
Posts: 1166
17
Java Linux Netbeans IDE
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic