🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: ClassDefNotFoundError

#7934
From: Ivo B. Limmen
Date: Wed, 02 May 2001 12:59
24 lines
2103 bytes
A servlet can not be runned using the command line; you will need a
WebServer to run it in. Read the servlet specs on http://java.sun.com and
use the Tomcat server on Apache (http://jakarta.apache.org/tomcat/)

Ivo

"Marc Breault" <lizmarc@optushome.com.au> wrote in message
news:r21petg9ukab2j1r1ofg2k1d2n0k8vtihb@4ax.com...
> I'm writing a servlet and one of my classes does calculations.  I
> thought I'd put in a main function so I could test the calculations
> via the command line as opposed to going through the whole process of
> using the entire servlet.  When I run the thing from the command line,
> I get a message
>
> Exception in thread "main"  Java.lang.  No ClassDefFoundError
>
> And nothing else happens.  According to the help, the VM has lost the
> class definition somewhere along the line.  Any idea what's happening?
> When I try running the class from the IDE I get a message saying the
> configuration of the project is not complete.  Any suggestions would
> be helpful.
>
> Thanks,
> Marc
Technical Details
Message-ID: <9cp0dp$7eh$1@porthos.nl.uu.net>
Path: arc1-ca.pugleaf.net!newsfeed.google.com!sn-xit-03!supernews.com!newsfeed.wirehub.nl!newspeer1.nac.net!colt.net!newsfeeds.belnet.be!news.belnet.be!newsfeed1.news.nl.uu.net!sun4nl!reader1.news.nl.uu.net!not-for-mail
References: <r21petg9ukab2j1r1ofg2k1d2n0k8vtihb@4ax.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f74b3,7d08d40de69b7ed2
X-Google-Attributes: gidf74b3,public
X-Google-ArrivalTime: 2001-05-02 06:02:03 PST
Path: arc1-ca.pugleaf.net!newsfeed.google.com!sn-xit-03!supernews.com!newsfeed.wirehub.nl!newspeer1.nac.net!colt.net!newsfeeds.belnet.be!news.belnet.be!newsfeed1.news.nl.uu.net!sun4nl!reader1.news.nl.uu.net!not-for-mail
From: "Ivo B. Limmen" <limmen@furore.nl>
Newsgroups: borland.public.jbuilder.java.language
Subject: Re: ClassDefNotFoundError
Date: Wed, 2 May 2001 14:59:42 +0200
Organization: UUNET-NL (http://www.nl.uu.net)
Lines: 26
Message-ID: <9cp0dp$7eh$1@porthos.nl.uu.net>
References: <r21petg9ukab2j1r1ofg2k1d2n0k8vtihb@4ax.com>
NNTP-Posting-Host: 1cust34.tnt3.rtm1.nl.uu.net
X-Trace: porthos.nl.uu.net 988808441 7633 213.116.100.34 (2 May 2001 13:00:41 GMT)
X-Complaints-To: abuse@nl.uu.net
NNTP-Posting-Date: 2 May 2001 13:00:41 GMT
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.50.4133.2400
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400