Using JAR files and file extraction

From: Iain Robinson (ipor20_at_o2.co.uk)
Date: 02/27/05


Date: Sun, 27 Feb 2005 18:51:38 GMT

Hi all,

I'm currently thinking of the best way to distribute a java app to users
and have been considering packaging the whole thing in a jar file
(simply so that it can be run in XP using the "open with" command). I
know how to set up a jar file to do this...and i know that the contents
of a jar file can be totally or partially extracted...but my question is
this...can an app run from "inside" a jar (in the above manner) still
access directories that have been previously extracted?

The reason for this is that i require a number of directories to be
consistently available for the app...but also available for the user to
save certain application-generated files to. I'm finding that if the app
is run within a jar file it cant locate the required directories and
defaults to the users home directory.

Regards

P@



Relevant Pages

  • jar and exeternal file to load into classpath
    ... I have a problem of popular nature:) I am tring to make my app ... I create a Jar file for my app, ... are also another Jars files (as libs): ... jconfig.jar it is properly declared in manifest. ...
    (comp.lang.java.programmer)
  • Re: Find my "program" folder?
    ... I want to know the directory that contains my app. ... it is started from a jar file. ... I start it from the IDE. ... That won't help me finding the xml file with initialization data..... ...
    (comp.lang.java.help)
  • Re: finding the directory a .jar file was launched from
    ... >> what is the best way via code to find the directory a jar file was ... appperfect java profiler on the app. ... profiler is setting its own user directory & launching my app from inside the ...
    (comp.lang.java.programmer)
  • =?ISO-8859-1?Q?Re:_jdbc_connection_to_Sybase_server_from_z/OS?=
    ... We have an z/WebSphere app that connects to a Sybase DB. ... I assume you have copied the driver jar file ... when you copy the jar file into the HFS make sure you do it in binary. ...
    (bit.listserv.ibm-main)
  • Jar File Extraction
    ... simplest way for a user to set up and access them. ... thought that packing them in a jar file would be the best way but seem ... If i run the app directly from the ... though would be to unpack just these directories from the jar file but 2 ...
    (comp.lang.java.programmer)