OK I've read
https://coderanch.com/t/391746/java/java/Game-Tutorials-Creating-Executable-JAR but I still don't seem to be able to access a jar within a jar.
Maybe what I'm trying to do is impossible and I misunderstood the above. Reading the section of that
thread beginning 'The use of a JAR file within a JAR file is the winner.' it suggests to me that FooJar.jar is entirely self-contained. In other words I want to be able to run FooJar.jar straight off a floppy disk with no separate copy of FooFrameJar.jar .
It appears that the 'Class-Path: FooFrameJar.jar' line in the manifest just tells the JVM to look in the directory from which FooJar.jar was invoked for FooFrameJar.jar, and, indeed, if it is present in the directory is executes correctly.
BUT...if the FooFrameJar.jar must be present in this directory then why on earth have we bothered to include it within FooJar.jar in the first place???
Please help me get rid of my infernal:
Exception in thread "main" java.lang.NoClassDefFoundError: foobar/FooFrame
at Foo.main(Foo.java:7)
TIA,
Tom
[ January 12, 2004: Message edited by: Thomas Hood ]