Path: csiph.com!usenet.pasdenom.info!aioe.org!.POSTED!not-for-mail From: Roedy Green Newsgroups: comp.lang.java.programmer Subject: Re: a question about creating the JAR file Date: Thu, 01 Nov 2012 18:26:04 -0700 Organization: Canadian Mind Products Lines: 26 Message-ID: <928698d10dvbjo2sr8picuruphrkl5olve@4ax.com> References: Reply-To: Roedy Green NNTP-Posting-Host: K2Qzzs3EAqXk5RLzfhxcSw.user.speranza.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Complaints-To: abuse@aioe.org X-Notice: Filtered by postfilter v. 0.8.2 X-Newsreader: Forte Agent 6.00/32.1186 Xref: csiph.com comp.lang.java.programmer:19589 On Fri, 26 Oct 2012 13:58:45 -0700 (PDT), zyng wrote, quoted or indirectly quoted someone who said : > >My confusion is do I need to bundle helper.jar into hello.jar? You could do in that way, but repackingt would be considered the baby way. Embedding a intact jar in a jar is an unnatural act. You could use Java Webstart to ensure the user has the latest jars. See http://mindprod.com/jgloss/javawebstart.html You could some sort of installer to handle this for you. see http://mindprod.com/jgloss/installer.html You could do it bare-chested style with an embedded Class-Path in the master jar. see http://mindprod.com/jgloss/jar.html -- Roedy Green Canadian Mind Products http://mindprod.com Ironically, even though the Internet was created by the US military [DARPA (Defense Advanced Research Projects Agency)] to withstand a nuclear attack, it is almost defenceless against malice from any of its users