Article View: borland.public.jbuilder.java.language
Article #15685Interpreter Fails
From: foolhead
Date: Tue, 11 May 1999 00:00
Date: Tue, 11 May 1999 00:00
25 lines
1318 bytes
1318 bytes
Hello,
Now I run the JAVA application,always show, on command line,
'Exception in thread "main" java.lang.NoClassDefFoundError:XXXX'.
XXXX is the class name.
Take an example.
First I build a Hello.java file.And its code is belowing.
-------------------------------------------------------------
import java.io.*;
public class Hello{
public static void main(String[] args){
System.out.println("Hello.");
}
}
-------------------------------------------------------------
Second, I type 'javac Hello.java' on command line.Compile OK.
Third, I type 'java Hello'.Show that error.
The Applets run well.
I first setup JDK1.2.1.Then setup VJ++.
I am afraid the Interpreter is destroyed or the Environment sets wrong.
The CLASSPATH is 'c:\windows\java\classes'.
Could you do me a fever?
Thanks.
-----
ICQ:26526438
Technical Details
Message-ID:
<3737C4D4.7221AFE7@990.net>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f74b3,e4d97ca9b04881fa,start X-Google-Attributes: gidf74b3,public From: foolhead <foolhead@990.net> Subject: Interpreter Fails Date: 1999/05/11 Message-ID: <3737C4D4.7221AFE7@990.net> X-Deja-AN: 476402679 Content-Transfer-Encoding: 7bit Organization: Another Netscape Collabra Server User Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 Newsgroups: borland.public.jbuilder.java.language