This week's giveaway is in the EJB and other Java EE Technologies forum. We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line! See this thread for details.
I have created a swing application which gives the output by creating two text files on the same directory of where it runs. I have used FileWriter to write into the files. When I run the class file using usual java command everything was going fine. I have created a jar file for the class and I am able to run the jar file also.
If I double-click or java -jar the jar file, the swing application gets displayed perfectly. But after doing the actions in the swing UI, the output files are not getting created. I could not understand why this is happening. Can any one tell about this?