Z
zyng
Hi:
I am a bit confused here. My code uses a third party JAR file, helper.jar. Now, I have finished compiling my code, with helper.jar on the classpath ofcourse. Now it's time to create the executable JAR(hello.jar) for delivery..
My confusion is do I need to bundle helper.jar into hello.jar? One thought I have is that during compiling, all the code needed from helper.jar has been extracted and combined into the generated *.clss files in build/ directory. So, for creating hello.jar, I only need to bundle all *.class files in build/ directory. But I am not sure that is correct.
Currently, I have to unjar(expand) helper.jar into build/ directory before I jar everything in build/. The result hello.jar works fine. If I skip unjarring helper.jar into build/ directory, no complain for creating hello.jar.But when running it, an exception of no class definition for a class inside helper.jar is thrown.
Thank you very much.
I am a bit confused here. My code uses a third party JAR file, helper.jar. Now, I have finished compiling my code, with helper.jar on the classpath ofcourse. Now it's time to create the executable JAR(hello.jar) for delivery..
My confusion is do I need to bundle helper.jar into hello.jar? One thought I have is that during compiling, all the code needed from helper.jar has been extracted and combined into the generated *.clss files in build/ directory. So, for creating hello.jar, I only need to bundle all *.class files in build/ directory. But I am not sure that is correct.
Currently, I have to unjar(expand) helper.jar into build/ directory before I jar everything in build/. The result hello.jar works fine. If I skip unjarring helper.jar into build/ directory, no complain for creating hello.jar.But when running it, an exception of no class definition for a class inside helper.jar is thrown.
Thank you very much.