🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Question: NoClassDefError

#18407
From: Kimmo P�ntiskoski
Date: Fri, 26 Jun 1998 00:00
25 lines
1426 bytes


Anthony Mak wrote:

> Dear All Newsgroupers,
>
>     I am using JDK1.2.
>     In my autoexec.bat, I have two lines:
> path=c:\jdk\bin;%PATH%
> set classpath=c:\jdk\lib\classes.zip
>
>     However if I set the classpath, and when I compile any java file I will
> get a NoClassDefError. Therefore, I removed the set classpath statement in
> my autoexec.bat. I don't know why setting the classpath cause
> NoClassDefError. Do anyone has a clue?

The compiler is trying to find all the classes referred by your class from the
class path.Do you have other classes that you have created in the same
directory than the class you're trying to compile. If yes try to set the
classpath like this:
set classpath=.;c:\jkd.....
                    ^
The extra dot means first look the classes from directory you are and then all
the other directories in the classpath.
Technical Details
Message-ID: <35935C5F.E1953464@igd.fhg.de>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <6mtl2p$mcr4@forums.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f74b3,78956695797dc239
X-Google-Attributes: gidf74b3,public
From: "Kimmo P�ntiskoski" <pontisko@igd.fhg.de>
Subject: Re: Question: NoClassDefError
Date: 1998/06/26
Message-ID: <35935C5F.E1953464@igd.fhg.de>
X-Deja-AN: 366244051
Content-Transfer-Encoding: 7bit
References: <6mtl2p$mcr4@forums.borland.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Organization: Another Netscape Collabra Server User
Newsgroups: borland.public.jbuilder.java.language