Article View: borland.public.jbuilder.java.language
Article #123Re: Why Doesn't This Jar File Work
From: Gillmer J. Derge [TeamB]
Date: Tue, 28 Aug 2007 14:04
Date: Tue, 28 Aug 2007 14:04
29 lines
2053 bytes
2053 bytes
Alvin Randolph wrote: > When I run PrintFields in that package examples, JBuilder6 sets 1st > classpath to outpath and executes examples.PrintFields. I replicated > this on the command line > > java -cp outpath examples.PrintFields > > Then I created jar file printfds.jar containing PrintFields.class, > > jar cvfm printfds.jar manifest.txt PrintFields.class It looks like you're creating this JAR file from the wrong directory. The file needs to contain examples/PrintFields.class. You're running the command from within the outpath directory so it contains PrintFields.class without the examples/ directory prefix. You should run it from one level up. Something like: jar cvfm printfds.jar examples/manifest.txt examples/PrintFields.class More generally, you'll probably have better luck if you move manifest.txt out of outpath and then just include everything in outpath (to avoid missing important classes as your application grows and you forget to change the JAR command). jar cvfm printfds.jar manifest.txt examples -- Gillmer J. Derge [TeamB]
Technical Details
Message-ID:
<46d42b5d$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!newshub.sdsu.edu!newsfeed.freenet.de!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<46d3f6da@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: f74b3,57312e246684eda1 X-Google-Attributes: gidf74b3,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Date: Tue, 28 Aug 2007 10:04:10 -0400 From: "Gillmer J. Derge [TeamB]" <spam@gillmerderge.com> User-Agent: Thunderbird 2.0.0.6 (Windows/20070728) MIME-Version: 1.0 Newsgroups: borland.public.jbuilder.java.language Subject: Re: Why Doesn't This Jar File Work References: <46d3f6da@newsgroups.borland.com> In-Reply-To: <46d3f6da@newsgroups.borland.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 65.110.135.196 Message-ID: <46d42b5d$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1188309853 65.110.135.196 (28 Aug 2007 07:04:13 -0700) Lines: 29 Path: arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!newshub.sdsu.edu!newsfeed.freenet.de!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail