Return-Path: Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 42373 invoked by uid 500); 23 Jul 2003 23:37:26 -0000 Mailing-List: contact user-help@ant.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Ant Users List" Reply-To: "Ant Users List" Delivered-To: mailing list user@ant.apache.org Received: (qmail 42361 invoked from network); 23 Jul 2003 23:37:26 -0000 Received: from mr-mcfeeley.fgm.com (216.1.16.101) by daedalus.apache.org with SMTP; 23 Jul 2003 23:37:26 -0000 Received: from [207.158.2.130] (sd.fgm.com [207.158.2.130]) by mr-mcfeeley.fgm.com (8.11.6/8.11.2) with ESMTP id h6NNVNm28221 for ; Wed, 23 Jul 2003 19:31:23 -0400 Message-ID: <3F1F1C4A.1070304@alumni.pitt.edu> Date: Wed, 23 Jul 2003 16:37:46 -0700 From: __matthewHawthorne User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.4) Gecko/20030624 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Ant Users List Subject: Re: Problem running executable jar - classpath issues References: <59007C908447154E9D9432A651876F37708852@bmmail.buymedia.com> In-Reply-To: <59007C908447154E9D9432A651876F37708852@bmmail.buymedia.com> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N This is default jar file behavior, and AFAIK, there is no way to change it. If it is a huge problem, a problem large enough to make you want to question your deployment strategy, you may want to either try using links (if you're using unix), or creating a wrapper script to set your classpath and run your program. Duffey, Kevin wrote: >Ok, that sucks then. So, when deploying, my executable .jar is wrapped up in a zip file along with the lib dir. Unzipped the lib dir and app.jar are in the same dir. Therefore, relative of lib/xxx would work in that case. When developing, I don't want to put the normal /lib in the dir as well, that is wasted space, not that it�s a big deal, but it looks bad and requires extra maintenance. I can't believe there is no way to have Ant execute a jar file in such a manner as to indicate that the .jar file is being ran from another dir. I thought that is what the dir="" in the call was for, to tell it where to start the JVM from, and thus if it loads the executable .jar file from some sub-dir, it would force it to operate out of the location dir="" is set to. Is there anything like that, or any other way to do this? > > >-----Original Message----- >From: Conor MacNeill [mailto:conor@cortexebusiness.com.au] >Sent: Wednesday, July 23, 2003 4:31 PM >To: Ant Users List >Subject: Re: Problem running executable jar - classpath issues > >On Thu, 24 Jul 2003 08:35 am, Duffey, Kevin wrote: > > >>Hi all, >> >>Can somebody please explain how to make this work? I don't want to have to >>copy my app.jar into the dir, nor do I want to keep two >>directories of the libraries! I want to use my /lib/*.jar >>from the app.jar located in /dist/app.jar, and execute this >>from the build script. >> >> > >Classpath entries in a manifest are relative to the location of the jar, not >from where you are running the code. > >Conor > > > >--------------------------------------------------------------------- >To unsubscribe, e-mail: user-unsubscribe@ant.apache.org >For additional commands, e-mail: user-help@ant.apache.org > > >--- >Incoming mail is certified Virus Free. >Checked by AVG anti-virus system (http://www.grisoft.com). >Version: 6.0.501 / Virus Database: 299 - Release Date: 7/14/2003 > > >--- >Outgoing mail is certified Virus Free. >Checked by AVG anti-virus system (http://www.grisoft.com). >Version: 6.0.501 / Virus Database: 299 - Release Date: 7/14/2003 > > > >*************************************************************************** >"The information contained in this e-mail message may be confidential and >protected from disclosure. If you are not the intended recipient, any >dissemination, distribution or copying is strictly prohibited. If you think >that you have received this e-mail message in error, please e-mail the >sender at exchangeadmins@marketron.com." >*************************************************************************** > >--------------------------------------------------------------------- >To unsubscribe, e-mail: user-unsubscribe@ant.apache.org >For additional commands, e-mail: user-help@ant.apache.org > > > > --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org