This week's giveaway is in the Spring forum.
We're giving away four 3 month subscriptions to Marco Behler Videos and have Marco Behler on-line!
See this thread for details.
Win a 3 month subscription to Marco Behler Videos this week in the Spring forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

setting classpath for jar file inside jar file  RSS feed

 
Sujay Kamble
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,
I have a jar file named A.jar. This A.jar contains a java class Trial.class, Manifest.mf and B.jar. Trial.class uses the B.jar file. How should i set the path of B.jar file in Manifest.mf.

As expected, if i keep B.jar file in the same directory as A.jar and give "CLASS-PATH: B.jar" in Manifest.mf, then it works. But i want to include this B.jar file in A.jar file.

Please help me solve this problem.

Sujay
 
K Riaz
Ranch Hand
Posts: 375
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Keep the JARs separate and add them separately to the classpath.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!