Meaningless Drivel is fun!*
The moose likes Java in General and the fly likes problem with jar Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "problem with jar" Watch "problem with jar" New topic
Author

problem with jar

S.L.Narayanan
Ranch Hand

Joined: Apr 01, 2005
Posts: 431
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?


SCJP 1.4, SCWCD 1.4, SCBCD 1.3, NEXT--->IBM XML
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: problem with jar
 
Similar Threads
About Updating JAR FILES
Run JAR file in Applet
classpath (what?, why? and how?)
My first JAR file
My Program is not loading the image files in the jar.