wood burning stoves 2.0*
The moose likes Java in General and the fly likes Creating a JAR file Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "Creating a JAR file" Watch "Creating a JAR file" New topic
Author

Creating a JAR file

David Garratt
Ranch Hand

Joined: Aug 08, 2003
Posts: 196

I have almost finished creating my swing based application and I am considering packaging it as a .JAR file. However I am a little confused about certain aspects of what can and cannot be packaged. Currently when my application runs it reads it's configuration from a XML file (which may change), it reads icons for buttons from an images directory (and the user can change these from within the application), it plays sounds from .wav files, invokes javahelp, writes log files using log4j and runs jasperreports. Now that's a lot of external files, some of which I may want to write to (xml, logs etc). For the most part I think the external resources should remain external but I does my code know if a resource is part of the .JAR file or part of the file system.

Are the any special coding / signing considerations I need to take account of so that my packaged application can read and write to files.

I have more questions, but for the sake of clarity perhaps I had better keep this one brief.

Many thanks

Dave
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Creating a JAR file