aspose file tools*
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

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


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
Similar Threads
Server usage clause fails to display under Unix
Cannot run .jar file
dynamically loading a class file from a jar file
Absolute/Relative path of jar file?
images in jar file