Hey
I have a program (.jar-file) that needs another .jar-file. I compile my [FONT=”Courier New”]File.java[/FONT] by:
[CODE]javac -cp .;JAR2.jar File.java
…and that works fine. I also pack my classes into a .jar-file:
[CODE]jar cmvf start.txt File.jar *.class
Now I have two .jar-files: [FONT=”Courier New”]File.jar[/FONT] & [FONT=”Courier New”]JAR2.jar[/FONT].
When I run File.jar, it can’t find classes inside [FONT=”Courier New”]JAR2.jar[/FONT];
[CODE][COLOR=”Red”]java.lang.NoClassDefFoundError[/COLOR]
Does anybody know how to fix this? Can I add “[FONT=”Courier New”]-cp .;JAR2.jar[/FONT]” anywhere to start the [FONT=”Courier New”]File.jar[/FONT] correctly?
Thanks in advance!