• Post Reply Bookmark Topic Watch Topic
  • New Topic

Accessing a file outside a jar  RSS feed

 
Cathleen Meneses
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 229
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Maybe this link can help you out!

Manifest classpath
 
Rick O'Shay
Ranch Hand
Posts: 531
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 229
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!