Article View: borland.public.jbuilder.java.language
Article #15873Executing a Class
From: Peter
Date: Sun, 25 Apr 1999 00:00
Date: Sun, 25 Apr 1999 00:00
25 lines
1315 bytes
1315 bytes
To all,
I created a class file as follows;
public class Sender {
public Sender() {
}
public static void main(String[] args) {
Sender sender = new Sender();
sender.invokedStandalone = true;
System.out.println("Hello Everybody");
}
private boolean invokedStandalone = false;
}
next, from the dos prompt in the directory where the class file resides
I attempt to execute and I get the following errors,
e:\jdk1.2\bin\java Sender
Exception in thread "main" java.lang.NoClassDefFoundError Sender
e:\jdk1.2\bin\java Sender.class
Exception in thread "main" java.lang.NoClassDefFoundError Sender\class
Technical Details
Message-ID:
<3723DB01.B6F769A5@worldnet.att.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,7e17397178c4a782,start X-Google-Attributes: gidf74b3,public From: Peter <pr144@worldnet.att.net> Subject: Executing a Class Date: 1999/04/25 Message-ID: <3723DB01.B6F769A5@worldnet.att.net> X-Deja-AN: 470894001 Content-Transfer-Encoding: 7bit X-Accept-Language: en Content-Type: text/plain; charset=us-ascii X-Complaints-To: abuse@worldnet.att.net X-Trace: bgtnsc03.worldnet.att.net 925096565 19479 12.79.0.68 (26 Apr 1999 03:16:05 GMT) Organization: AT&T WorldNet Services Mime-Version: 1.0 NNTP-Posting-Date: 26 Apr 1999 03:16:05 GMT Newsgroups: borland.public.jbuilder.java.language