This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
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 Android Security Essentials Live Lessons this week in the Android 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: 246


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