🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.database
Article #304

Re: java.lang.NoClassDefFoundError: com/borland/dx/dataset/DataSet

#304
From: Kevin Dean [TeamB]
Date: Fri, 22 Jun 2007 13:16
31 lines
2136 bytes
Ruben Sol wrote:

>Why I get "java.lang.NoClassDefFoundError: com/borland/dx/dataset/DataSet" 
>when running an Applet in a web browser?
>
>A jar file "Including all classes and resources" is being produced and 
>placed at the same location of the Applet.html file.
>
>The applet runs fine within JBuilder's 2006 IDE when clicking on the 
>Applet.html.
>
>Help is very appreciated!

You're better off including the dx.jar distributable as a JAR in the 
applet definition.  It's generally not a good idea to bundle everything 
into a single JAR, for two reasons:

1) Since library JARs seldom change, the browser or applet plug-in can 
cache the individual JAR files, reducing download time when you change 
your application.

2) Including all dependencies in a JAR file doesn't detect indirect 
dependencies acquired through reflection, resulting in incomplete JAR files.

-- 
Kevin Dean [TeamB]
Dolphin Data Development Ltd.
http://www.datadevelopment.com/

Please see Borland's newsgroup guidelines at
http://info.borland.com/newsgroups/guide.html
Technical Details
Message-ID: <xn0f7r2u21vi2x000-kdean@www.teamb.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail
References: <467b060a$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 1073da,2b0fd60150962820
X-Google-Attributes: gid1073da,public,usenet
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Kevin Dean [TeamB]" <NkOdSePaAnM@datadevelopment.com>
Subject: Re: java.lang.NoClassDefFoundError: com/borland/dx/dataset/DataSet
Newsgroups: borland.public.jbuilder.database
References: <467b060a$1@newsgroups.borland.com>
Organization: Dolphin Data Development Ltd.
User-Agent: XanaNews/1.18.1.6
X-Face: ":yn4zt^A_dn>6~{YJmu^B\'4w)e:apPM\VC=Dvf&*tASxX9|BYczkFd$xr.$vNSZ[3Uobrp]c4\+\l){!WQI.$]veP({HLd;CDYH?iN
Message-ID: <xn0f7r2u21vi2x000-kdean@www.teamb.com>
X-Ref: newsgroups.borland.com ~XNS:00000874
MIME-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1; format=flowed
NNTP-Posting-Host: 199.243.78.163
Date: 22 Jun 2007 06:16:50 -0700
X-Trace: newsgroups.borland.com 1182518210 199.243.78.163 (22 Jun 2007 06:16:50 -0700)
Lines: 31
X-Authenticated-User: kdean
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail