File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
this week in the
Other Open Source APIs
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.
I agree. Here's the link:
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