🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: NoClassDefFoundError

#661
From: Bruce Houghton
Date: Tue, 04 Jan 2005 13:31
99 lines
4080 bytes
I found the problem...
I was trying to "Debug" using "AppletViewer".
It appears that appletviewer doesn't support
multiple jar files. When I deploy the applet to my
ISP, it works just fine.

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

Jar:
Build jar cvf ....
update jar umf .. manifest include "Class-Path: poi....jar"
Index  jar -i barry.jar

Thanks
Bruce Houghton


"Bruce Houghton" <bhought@globalserve.net> wrote in message 
news:41d7f8c5$1@newsgroups.borland.com...
>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: <41da9a38$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed.multikabel.nl!news2.euro.net!216.196.110.149.MISMATCH!border2.nntp.ams.giganews.com!border1.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
References: <41d58471@newsgroups.borland.com> <41d5bbb8$1@newsgroups.borland.com> <41d7f8c5$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> <41d7f8c5$1@newsgroups.borland.com>
Subject: Re: NoClassDefFoundError
Date: Tue, 4 Jan 2005 08:31:40 -0500
Lines: 101
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: 209.183.2.218
Message-ID: <41da9a38$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1104845368 209.183.2.218 (4 Jan 2005 05:29:28 -0800)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed.multikabel.nl!news2.euro.net!216.196.110.149.MISMATCH!border2.nntp.ams.giganews.com!border1.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