Jar file manifest
From: efinery (hugh_at_efinery.com)
Date: 07/31/04
- Next message: efinery: "Re: Jar file manifest"
- Previous message: os2: "problem to compile with gcj"
- Next in thread: efinery: "Re: Jar file manifest"
- Reply: efinery: "Re: Jar file manifest"
- Reply: Chris Smith: "Re: Jar file manifest"
- Reply: Oscar kind: "Re: Jar file manifest"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Fri, 30 Jul 2004 19:40:15 -0400
Is it possible to run a jar file that is contained within another jar file?
I have tried and can't seem to get it to work.
I have the following manifest in test.jar :
Manifest-Version: 1.0
Main-Class: com.efinery.RunTest
This runs fine using "java -jar test.jar" from the command line. However,
when I place it inside a jar called mainapp.jar and have it's manifest
reference test.jar in the Classpath as follows :
Manifest-Version: 1.0
Main-Class: com.efinery.RunTest
Classpath: runme.jar
When I try to run "java -jar mainapp.jar" I get a
java.lang.NoClassDefFoundError. Can anybody tell me what I am doing wrong?
Any help would be much appreciated.
- Next message: efinery: "Re: Jar file manifest"
- Previous message: os2: "problem to compile with gcj"
- Next in thread: efinery: "Re: Jar file manifest"
- Reply: efinery: "Re: Jar file manifest"
- Reply: Chris Smith: "Re: Jar file manifest"
- Reply: Oscar kind: "Re: Jar file manifest"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|