Article View: borland.public.jbuilder.java.language
Article #656Re: NoClassDefFoundError
From: Paul Furbacher [TeamB]
Date: Fri, 31 Dec 2004 20:51
Date: Fri, 31 Dec 2004 20:51
43 lines
2504 bytes
2504 bytes
Bruce Houghton wrote:
> I think this is a very simple question, but
> can't seem to find the answer.
> I have included Jakarta POI-HSSF in my Applet
> project. It works find when I run it from JBuilder.
> However it can't find POIFSFileSystem when
> I run it outside of JBuilder.
> Q. Are these file not included at build time?
> If not, how do you include them.
> Here is a copy of my Run.bat file.
> appletviewer -J-Djava.security.policy=MyPolicyFile Barry.html
Unless you put the POI classes (either in
a JAR or as loose classes) on the classpath, they
aren't included. The applet runs in JBuilder
because you have created and added a library
for the POI classes (a JAR), and because
JBuilder constructs the classpath in order
to run the applet. You must do this manually
when you deploy externally. You may get a
hint of how you must construct the classpath
by copying the first line in the Message Pane
when you run the applet inside JBuilder.
(It may be helpful to read the built-in JBuilder Help
on applets: it may discuss this very issue.)
--
Paul Furbacher (TeamB)
Save time, search the archives:
http://www.borland.com/newsgroups/ngsearch.html
Is it in Joi Ellis's Faq-O-Matic?
http://www.visi.com/~gyles19/fom-serve/cache/1.html
Finally, please send responses to the newsgroup only.
That means, do not send email directly to me.
Thank you.
Technical Details
Message-ID:
<41d5bbb8$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!proxad.net!news.wiretrip.org!border2.nntp.ams.giganews.com!nntp.giganews.com!pe2.news.blueyonder.co.uk!blueyonder!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mailReferences:
<41d58471@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: f74b3,90e51974c023784f X-Google-Attributes: gidf74b3,public X-Google-Language: ENGLISH,ASCII-7-bit Date: Fri, 31 Dec 2004 15:51:05 -0500 From: "Paul Furbacher [TeamB]" <pfurbacher@mac.com> Organization: Reverse Alchemy, Inc. User-Agent: Mozilla Thunderbird 0.8 (Macintosh/20040913) X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: borland.public.jbuilder.java.language Subject: Re: NoClassDefFoundError References: <41d58471@newsgroups.borland.com> In-Reply-To: <41d58471@newsgroups.borland.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 69.142.222.65 Message-ID: <41d5bbb8$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1104526264 69.142.222.65 (31 Dec 2004 12:51:04 -0800) Lines: 43 Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!proxad.net!news.wiretrip.org!border2.nntp.ams.giganews.com!nntp.giganews.com!pe2.news.blueyonder.co.uk!blueyonder!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mail