🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Executin a Class file

#15878
From: Peter
Date: Mon, 26 Apr 1999 00:00
31 lines
1343 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


I am on NT40  and e:\jdk1.2\bin\ is in the classpath...

Thanks you,
Peter
Technical Details
Message-ID: <3724805E.42BCAC9A@worldnet.att.net>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f74b3,8eb70b98de1934a5,start
X-Google-Attributes: gidf74b3,public
From: Peter <pr144@worldnet.att.net>
Subject: Executin a Class file
Date: 1999/04/26
Message-ID: <3724805E.42BCAC9A@worldnet.att.net>
X-Deja-AN: 471067446
Content-Transfer-Encoding: 7bit
X-Accept-Language: en
X-Posted-Path-Was: not-for-mail
Content-Type: text/plain; charset=us-ascii
X-ELN-Date: 26 Apr 1999 15:04:34 GMT
X-ELN-Insert-Date: Mon Apr 26 08:05:07 1999
Organization: EarthLink Network, Inc.
Mime-Version: 1.0
Newsgroups: borland.public.jbuilder.java.language