This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
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.