| Author |
Accessing a file outside a jar
|
Cathleen Meneses
Greenhorn
Joined: Mar 16, 2004
Posts: 21
|
|
Hi! I have a jar (say, JarA), that needs to access another jar's (say, jarB) file... I have a small idea that i should include the path of my jarB in the classpath of my manifest.. but it's not working... Any suggestions or ideas on how i might be able to go about this? any help is greatly appreciated! Many Thanks!!
|
 |
Manuel Moons
Ranch Hand
Joined: Mar 05, 2002
Posts: 229
|
|
Maybe this link can help you out! Manifest classpath
|
 |
Rick O'Shay
Ranch Hand
Joined: Sep 19, 2004
Posts: 531
|
|
Originally posted by Cathleen Meneses: Hi! I have a jar (say, JarA), that needs to access another jar's (say, jarB) file... I have a small idea that i should include the path of my jarB in the classpath of my manifest.. but it's not working... Any suggestions or ideas on how i might be able to go about this?  any help is greatly appreciated! Many Thanks!!
You can put 'em both in the -classpath. Manifest is for applets and nested jars.
|
 |
Manuel Moons
Ranch Hand
Joined: Mar 05, 2002
Posts: 229
|
|
|
Manifest files are not only for applets and nested jars. You can make an executable jar and let it refer to other jars using the "class-path:" manifest entry.
|
 |
 |
|
|
subject: Accessing a file outside a jar
|
|
|