A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
load a jar file
Joined: Apr 05, 2005
Oct 09, 2009 15:39:43
in a program i do this to read a jar file
JarFile jar = new JarFile("C:\\ERP\\conf\\lib\\img.jar");
the program is located in ERP folder
how to load the jar file from the location of the program... i don't want to put c:\\....
i would like also to be os independant...
is there a way to do that?
John de Michele
Joined: Mar 09, 2009
Oct 09, 2009 16:43:05
You can put the path in a properties file.
With a little knowledge, a
cast iron skillet
is non-stick and lasts a lifetime.
subject: load a jar file
Cannot run .jar file
Server usage clause fails to display under Unix
dynamically loading a class file from a jar file
images in jar file
Absolute/Relative path of jar file?
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015