File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Beginning Java and the fly likes load a jar file Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "load a jar file" Watch "load a jar file" New topic

load a jar file

mark smith
Ranch Hand

Joined: Apr 05, 2005
Posts: 251


in a program i do this to read a jar file

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
Posts: 600

You can put the path in a properties file.

I agree. Here's the link:
subject: load a jar file
It's not a secret anymore!