🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.language
Article #658

Re: NoClassDefFoundError

#658
From: Bruce Houghton
Date: Sun, 02 Jan 2005 13:38
74 lines
3207 bytes
I understand what you are saying Paul, I just can't
figure out "How to do it".
This is in the .bat file,

appletviewer -J-Djava.security.policy=MyPolicyFile Barry.html

and this is in the "Barry.html" file

<applet
  code = "barry.Begin"
  archive = "barry.jar, poi-2.5.1-final-20040804.jar"

You can see that I have added the POI file to the
"Class Path" so to speak.

You don't think I will have to Undo the
POI jar file, and Include the appropriate
classes in my project, do you?
I can't imagine it being this complicated.
I am/will keep reading the help/tutorial.
Bruce Houghton




"Paul Furbacher [TeamB]" <pfurbacher@mac.com> wrote in message news:41d5bbb8




$1@newsgroups.borland.com...
> 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: <41d7f8c5$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!gatel-ffm!gatel-ffm!194.25.134.126.MISMATCH!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <41d58471@newsgroups.borland.com> <41d5bbb8$1@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
Reply-To: "Bruce Houghton" <bhought@globalserve.net>
From: "Bruce Houghton" <bhought@globalserve.net>
Newsgroups: borland.public.jbuilder.java.language
References: <41d58471@newsgroups.borland.com> <41d5bbb8$1@newsgroups.borland.com>
Subject: Re: NoClassDefFoundError
Date: Sun, 2 Jan 2005 08:38:15 -0500
Lines: 76
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.2180
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180
X-RFC2646: Format=Flowed; Response
NNTP-Posting-Host: 207.112.47.109
Message-ID: <41d7f8c5$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1104672965 207.112.47.109 (2 Jan 2005 05:36:05 -0800)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!gatel-ffm!gatel-ffm!194.25.134.126.MISMATCH!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail