Exception in the thread 'main' java.lang.NoClassDe

Hallo,

wenn ich den Befehl „java Nummer1.class“ auf der Befehlsoberfläche bekomme ich die folgende Fehlermeldung:

Exception in the thread „main“ java.lang.NoClassDefFound Error: Nummer 1

Die Datei existiert auch unter dem Verzeichniss in welchem ich den Befehl eingebe. Groß und Kleinschreibefehler kann ich ausschließen, da ich schon alle Varianten durchprobiert habe.

Die Dokumentation sagt dazu folgendes:

public class NoClassDefFoundError
extends LinkageError

Thrown if the Java Virtual Machine or a ClassLoader instance tries to load in the definition of a class (as part of a normal method call or as part of creating a new instance using the new expression) and no definition of the class could be found.

The searched-for class definition existed when the currently executing class was compiled, but the definition can no longer be found.

Since:
JDK1.0
See Also:
Serialized Form

Das hilft mir aber nicht weiter.

Was muss ich machen um das Programm erfolgreich ausführen zu können?

Hallo,

java Nummer1

würde es tun.

Gruß

Peter

[Bei dieser Antwort wurde das Vollzitat nachträglich automatisiert entfernt]