Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Jar libraries 1

Status
Not open for further replies.

sroberts82

Programmer
Oct 11, 2005
36
US

Hi,
I have my jar file created with the main class specified. That works fine but it fails to find associated libraries which I have included in a lib folder in the jar. So my questions is how do I specify on the command line the classpath to look at dirs inside the jar. When I say to look at lib it seems to search for a lib folder in the directory I am running from (as I would expect it to). So how do I tell it from the command line, also is there a way to put this in the Manifest file? Thanks a lot
Stephen
 
Thank you very much Tim, thats exactly what I was looking for. Maybe my searching skills need as much work as my jar skills :)
 
Well, my search was an educated guess. I knew that it would most likely require a custom ClassLoader and the link I posted was the first in the hits on a google of 'jar classloader'.

Tim
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top