File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Java in General and the fly likes setting classpath for jar file inside jar file Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "setting classpath for jar file inside jar file" Watch "setting classpath for jar file inside jar file" New topic
Author

setting classpath for jar file inside jar file

Sujay Kamble
Greenhorn

Joined: Feb 23, 2004
Posts: 5
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

Joined: Jan 08, 2005
Posts: 375
Keep the JARs separate and add them separately to the classpath.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: setting classpath for jar file inside jar file
 
Similar Threads
Unable to find shared jar in WSAD 5.1.2's WebSphere 5.0 Test Environment
jar file
jar classpath help
Setting classpath for Jar file inside jar file
Custom order when loading jar files