This week's book giveaway is in the Java 8 forum.
We're giving away four copies of Java 8 in Action and have Raoul-Gabriel Urma, Mario Fusco, and Alan Mycroft on-line!
See this thread for details.
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


Win a copy of Java 8 in Action this week in the Java 8 forum!
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: 187

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
 
Similar Threads
JAR inclues native code
Adding external jar in weblogic
build problems and relative paths
problem with jar
Imbedded jar file