Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #19517
| Newsgroups | comp.lang.java.programmer |
|---|---|
| Date | 2012-10-26 13:58 -0700 |
| Message-ID | <c34600e7-78d9-44a5-a79c-ee804ed992e2@googlegroups.com> (permalink) |
| Subject | a question about creating the JAR file |
| From | zyng <xsli2@yahoo.com> |
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 of course. 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.
Back to comp.lang.java.programmer | Previous | Next — Next in thread | Find similar | Unroll thread
a question about creating the JAR file zyng <xsli2@yahoo.com> - 2012-10-26 13:58 -0700
Re: a question about creating the JAR file Lew <lewbloch@gmail.com> - 2012-10-26 14:14 -0700
Re: a question about creating the JAR file zyng <xsli2@yahoo.com> - 2012-10-31 12:41 -0700
Re: a question about creating the JAR file Lew <lewbloch@gmail.com> - 2012-10-31 15:19 -0700
Re: a question about creating the JAR file Sven Köhler <remove-sven.koehler@gmail.com> - 2012-10-27 16:54 +0200
Re: a question about creating the JAR file Jan Burse <janburse@fastmail.fm> - 2012-10-27 17:20 +0200
Re: a question about creating the JAR file Jan Burse <janburse@fastmail.fm> - 2012-10-27 17:24 +0200
Re: a question about creating the JAR file Sven Köhler <remove-sven.koehler@gmail.com> - 2012-10-27 19:06 +0200
Re: a question about creating the JAR file Lew <lewbloch@gmail.com> - 2012-10-28 09:44 -0700
Re: a question about creating the JAR file Roedy Green <see_website@mindprod.com.invalid> - 2012-11-01 18:26 -0700
csiph-web