dcsimg
Nested JAR files
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Eric_Tetz
Posted On:   Monday, September 24, 2001 11:59 AM

I have the following simple test project: FooBar.jar Foo.class Bar.class Test.jar Test.class FooBar.jar META-INFOMANIFEST.MF How do I allow the classes in Test.jar to see the class in the nested JAR file (FooBar.jar)? Test.class relies on Foo.class and Bar.class, both of which are in the nested FooBar.jar. With the following command line: java -jar Test.jar I get "NoClassDefFoundError" for class Foo. Test.class cannot see the classes in FooBar.jar. What am I doing wrong? Cheers, Eric    More>>

I have the following simple test project:

			
FooBar.jar
Foo.class
Bar.class

Test.jar
Test.class
FooBar.jar
META-INFOMANIFEST.MF


How do I allow the classes in Test.jar to see the class in the nested JAR file (FooBar.jar)?

Test.class relies on Foo.class and Bar.class, both of which are in the nested FooBar.jar. With the following command line:

java -jar Test.jar

I get "NoClassDefFoundError" for class Foo. Test.class cannot see the classes in FooBar.jar. What am I doing wrong?

Cheers,

Eric

   <<Less

Re: Nested JAR files

Posted By:   josh_knowles  
Posted On:   Monday, September 24, 2001 12:44 PM

Adding the following to you manifest file in Test.jar should solve it.



Class-Path: FooBar.jar
About | Sitemap | Contact