Article View: comp.lang.java.machine
Article #9Re: ??? Exception in Thread 'main' java.lang.NoClassDefFoundError: HelloWorld
From: Chitra Saravanan
Date: Tue, 18 Jul 2000 00:00
Date: Tue, 18 Jul 2000 00:00
57 lines
3119 bytes
3119 bytes
This is a multi-part message in MIME format.
--------------1F08828A3A338FCB7C7AFE32
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Open the .profile and add the classes.zip directory and your directory to
classpath and add the java bin directory to path
1. set classpath = <full path for classes.zip>; <your current
working directory>
eg. set classpath = usr\java\lib\classes.zip:home\john
2. set path = usr\java\bin
still if you are getting problem go to the following website and search to
fix your problem.
http://java.sun.com/docs/books/tutorial/getStarted/cupojava/unix.htr
or you can search in java.sun.com java in unix/linux.
Alan Tang wrote:
> To anyone,
>
> I have just re-installed jdk1.2.2 for Linux on Mandrake 7.01. I have
> compiled a simple HelloWorld.java by javac, with all the /lib and /bin
> assigned as Env_variables. However, I kept receiving when tried to java
> HelloWorld
>
> Exception in Thread 'main' java.lang.NoClassDefFoundError: HelloWorld
>
> What the hell is going on ? I have tried to compile the source under Win
> with JDK1.3 and it worked fine.
>
> Help!!!
>
> Thanks
>
> Alan
>
> please email ic@clara.net
--------------1F08828A3A338FCB7C7AFE32
Content-Type: text/x-vcard; charset=us-ascii;
name="schithu.vcf"
Content-Transfer-Encoding: 7bit
Content-Description: Card for Chitra Saravanan
Content-Disposition: attachment;
filename="schithu.vcf"
begin:vcard
n:;
x-mozilla-html:FALSE
adr:;;;;;;
version:2.1
email;internet:schithu@uswest.net
fn:Chitra Saravanan
end:vcard
--------------1F08828A3A338FCB7C7AFE32--
Technical Details
Message-ID:
<397480D3.E4CE290C@uswest.net>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<395CBCD7.3656EC42@clara.net>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10568c,5dfb3f5fd2b97d3f X-Google-Attributes: gid10568c,public X-Google-Thread: fb3cb,5dfb3f5fd2b97d3f X-Google-Attributes: gidfb3cb,public X-Google-Thread: f5e83,5dfb3f5fd2b97d3f X-Google-Attributes: gidf5e83,public X-Google-Thread: 115d3b,5dfb3f5fd2b97d3f X-Google-Attributes: gid115d3b,public X-Google-Thread: fcc66,5dfb3f5fd2b97d3f X-Google-Attributes: gidfcc66,public X-Google-Thread: fb99b,5dfb3f5fd2b97d3f X-Google-Attributes: gidfb99b,public X-Google-Thread: 10a146,5dfb3f5fd2b97d3f X-Google-Attributes: gid10a146,public X-Google-Thread: 10bb9b,5dfb3f5fd2b97d3f X-Google-Attributes: gid10bb9b,public From: Chitra Saravanan <schithu@uswest.net> Subject: Re: ??? Exception in Thread 'main' java.lang.NoClassDefFoundError: HelloWorld Date: 2000/07/18 Message-ID: <397480D3.E4CE290C@uswest.net> X-Deja-AN: 647817730 References: <395CBCD7.3656EC42@clara.net> X-Accept-Language: en Content-Type: multipart/mixed; boundary="------------1F08828A3A338FCB7C7AFE32" X-Trace: news.uswest.net 963943530 207.225.102.201 (Tue, 18 Jul 2000 13:05:30 CDT) MIME-Version: 1.0 NNTP-Posting-Date: Tue, 18 Jul 2000 13:05:30 CDT Newsgroups: comp.lang.java.machine,comp.lang.java.programmer,comp.lang.java.security,comp.lang.java.softwaretools,comp.lang.javascript,cz.comp.lang.java,de.comp.lang.java,de.comp.lang.javascript,dk.edb.programmering.java,es.comp.lenguajes.java