Win a copy of Kubernetes in Action this week in the Cloud/Virtualization forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Log file for JNLP application  RSS feed

 
Ranch Hand
Posts: 47
Eclipse IDE Java Netbeans IDE
  • 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?
 
Bartender
Posts: 1166
17
Java Linux Netbeans IDE
  • 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.
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!