Article View: borland.public.jbuilder.java.language
Article #122Why Doesn't This Jar File Work
From: Alvin Randolph
Date: Tue, 28 Aug 2007 10:19
Date: Tue, 28 Aug 2007 10:19
24 lines
1556 bytes
1556 bytes
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 & set main class in manifest file with Main-Class: examples.PrintFields When I ran jar file, java -cp outpath -jar examples.printfds.jar I got message, Exception in class "main" java.Lang.NoClassDefFoundError: examples/PrintFields. What am I doing wrong??? -- Alvin Randolph
Technical Details
Message-ID:
<46d3f6da@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Thread: f74b3,57312e246684eda1,start X-Google-Attributes: gidf74b3,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit From: "Alvin Randolph" <a.g.randolph@worldnet.att.net> Newsgroups: borland.public.jbuilder.java.language Subject: Why Doesn't This Jar File Work Date: Tue, 28 Aug 2007 03:19:53 -0700 Lines: 25 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=original Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.3138 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3138 NNTP-Posting-Host: 68.99.253.139 Message-ID: <46d3f6da@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1188296410 68.99.253.139 (28 Aug 2007 03:20:10 -0700) Path: arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail