• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

problem with jar

 
S.L.Narayanan
Ranch Hand
Posts: 431
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic