Eclipse-Fehler

ruuckiii

Mitglied
Hallo,

Eclipse kann ich normal öffnen nur beim ausführen kommt ständig eine Fehlermeldung...

"Error: Could not find or load main class hallo.hallo
Caused by: java.lang.ClassNotFoundException: hallo.hallo"

Trotz der Fehlermeldung kann ich daraus nix ziehen, wie ich den Fehler beheben kann^^

Vielen Dank!

LG
 
K

kneitzel

Gast
Du versuchst dein Programm über die Klasse hallo im Packahe hallo zu starten und diese Klasse gibt es nicht oder hat keine main Methode mit passender Signatur.

Aber ohne Details, was du genau machst und was du an Code hast kann man auch nicht mehr sagen fürchte ich.
 

ruuckiii

Mitglied
Ich habe im Anhang mal'n Screenshot hochgeladen. An sich mache ich nix komplexes.

Das Ding ist, habe meinen PC neu aufgesetzt und davor ging auch alles - konnte ohne Probleme Projekte, Klassen Packages erstellen.... Nun kommt jetzt mal die oben aufgeführte Fehlermeldung. Egal ob ich ein Package erstelle oder nicht!!

Also es reicht, wenn ich nur ein neues Java-Project erstelle und in diesem Projekt eine Klasse erstelle und trotzdem kommt diese Fehlermeldung obwohl keine Syntaxfehler oder so :(
 

Anhänge

  • b1e75e4be7b0331b26d441ee9345645b.png
    b1e75e4be7b0331b26d441ee9345645b.png
    80,6 KB · Aufrufe: 31
K

kneitzel

Gast
Da dann ggf. mal folgende Schritte durchführen:

a) Run Configurations prüfen - Unter Run->Run Configurations kannst Du schauen, was er genau versucht zu starten. Da könnte etwas falsch sein. Ggf. die Konfiguration löschen, die Probleme bereitet (Wobei ich nicht weiss, ob Eclipse automatisch eine Run Configuration anlegt, wenn man z.B. eine Klasse per Kontextmenü anstartet (das wird bestimmt gehen denke ich ...)

b) .metadata Verzeichnis könnte korrupt sein. Eclipse beenden und das .metadata Verzeichnis vom workspace löschen.

Das wären so die Schritte, die ich z.B. unter https://stackoverflow.com/questions/10356854/eclipse-cant-find-load-main-class gefunden habe.

(Man kann es natürlich auch einfach als freundliche Bitte von Eclipse verstehen, zu einer anderen IDE wie IntelliJ IDEA zu wechseln :) *scnr*
Aber das heißt nicht, dass es so Probleme nicht auch unter anderen IDEs geben könnte :) )
 

LimDul

Top Contributor
Da ist ein rotes x beim Projekt. Das spricht dafür, dass irgendwas im Argen liegt.

Erste Frage: Ist Build Automaticly angeschaltet (unter Project)?
Öffne mal die View Markers und/oder Problems und schau nach, warum da ein rotes X ist. Ich behaupte, irgendwas ist an deinem Build-Path kaputt, weswegen er nicht kompiliert und dann logischerweise auch nix findet.
 
Ähnliche Java Themen
  Titel Forum Antworten Datum
Eichi1979 Eclipse Fehler in Eclipse IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 10
H Eclipse Fehler beim starten des Projekts IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 13
H eclipse Fehler: Hauptklasse konnte nicht gefunden - bei Umwandlung in git IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 4
H Eclipse Plug-in -> Fehler bei org.eclipse.e4.tools.bundle.spy IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 3
I Eclipse Fehler werden nicht angezeigt (Eclipse) IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 3
M Fehler beim Start von Eclipse / Sloeber IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 5
B Fehler bei Eclipse IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 1
M Eclipse Eclipse start Fehler nach Installation IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 2
A eclipse: AndEnginePhysicsBox2DExtension: Fehler bei import IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 1
Maxim6394 Eclipse zeigt Fehler in Projekt und kompiliert nicht IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 2
D Eclipse Eclipse Fehler im Projekt (nicht im Source) IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 9
A Fehler mit Eclipse Android Plugin IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 3
ruutaiokwu eclipse fehler bug? IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 7
P Eclipse, Fehler beim Software update IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 6
reibi Eclipse Start-Fehler IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 12
U Eclipse RUN Fehler IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 14
M Fehler beim Starten von Eclipse IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 3
H Eclipse/Tomcat/Axis2/Webservice => Fehler "Selection must be WSDL" IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 8
gasgesicht eclipse/pydev fehler bei auswahl des pythoninterpreters IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 10
N Eclipse fehler wird nicht gestartet IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 35
T Eclipse registriert nicht, dass die Fehler behoben sind IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 2
A Eclipse zeigt Fehler & Warnungen von allen Projekten an IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 2
K Fehler beim Speichern [eclipse] IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 3
Antoras Eclipse Fehler IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 6
I Fehler beim Starten von Eclipse IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 5
U [Eclipse@Linux] Fehler beim kompilieren IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 2
vogella Eclipse - Zum nächsten Fehler kommen IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 2
M Eclipse WTP - JSF meldet Fehler IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 3
L Eclipse-Fehler? IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 7
H [Eclipse] Fehler: A console is not available IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 4
G eclipse fehler: Doule - double geht nicht? IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 2
M fehler beim starten von eclipse IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 5
sambalmueslie Eclipse Linux Fehler IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 13
C Eclipse Fehler: JVM terminated Exit Code = 1 IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 3
M Eclipse: Fehler bei Installation IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 11
B Fehler beim Start von Eclipse IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 11
R Eclipse beim Ausführen zur Eingabe in die Konsole springen IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 1
T Eclipse Java Projekt funktioniert in Eclipse, aber nach export kein Dateizugriff IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 3
M Eclipse oder IntelliJ? IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 8
JonasM Gibt es eine Libary in Eclipse mit der ich Daten per USB an einen Microkontroller Senden kann? IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 6
N Erstellen einer ausführbaren jar Datei in Eclipse (Linux Mint) IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 17
O Eclipse stürzt beim Autovervollständigen ab IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 17
C In Eclipse Einrückung im Java-Editor einstellen IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 4
Avalon html ist nicht html in eclipse IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 1
A Docker im Eclipse IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 3
Robertop Eclipse resolved Target-Platform nicht wegen automatischem HTTPS IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 3
C Eclipse englisch, deutsche Kommentare leider rot unterkringelt IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 2
T Eclipse von Java 1.8 auf 17 IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 6
S [Eclipse] Zwei verschiedene Konfigurationen erstellen IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 9
A Eclipse Projekt-Umzug mit Eclipse IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 8
D Eclipse Eclipse und OpenGL IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 3
M Ausführbares Programm aus Eclipse exportieren IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 6
Java00User00 Eclipse Theme IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 5
F Eclipse für Java 1.8 ARM einrichten IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 6
D Crawler funktioniert in intellij aber in Eclipse nicht IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 4
U Problem mit Eclipse - WindowBuilder - memoryLeak? IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 15
F Eclipse - Änderung am Code ohne Applikation Neustart IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 5
E Hilfe mit Eclipse IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 2
B Eclipse version control System das ohne Internet funktioniert/nur lokal auf Computer? IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 5
B Eclipse Problem mit jar Datei? IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 4
N Eclipse erzeugt plötzlich keine (default package) mehr IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 24
F alle Eclipse Projekte auf git hochladen IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 7
O Java Eclipse Umlaute werden nicht richtig dargestellt in Konsole IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 10
B .exe Datei für Eclipse Java Programm erstellen? IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 9
Eclipse Build path duplication entry IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 11
B Wie nicht-java Datei mit Eclipse benutzen (Excel Datei einlesen)? IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 16
T GlassFish mit Eclipse, Dynamic Web Projekt IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 2
nbergmann Eclipse Eclipse-Concole: Ergebnis-Zahlenfolge erscheint kurz und verschwindet dann wieder IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 21
berserkerdq2 Eclipse Eclipse führt nicht dei Klasse aus, bei der ich bin, muss das immer manuell ändern, was tun? IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 1
MiHimbert Eclipse + Wildfly26 + primefaces11 + openjdk18 IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 22
S Eclipse Umlaute IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 13
S Fehlermeldung bei Nutzung Eclipse IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 4
LimDul IDEA IntelliJ Tipps für den Umstieg von Eclipse auf intelliJ IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 4
Robertop Maven Warnung "'version' contains an expression but should be a constant" in Eclipse verstecken IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 6
J Eclipse - kein Server verfügbar zum ausführen meines Java Projektes IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 12
P PHP Skript wird nicht mit highlights markiert(Eclipse) IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 6
B Eclipse Autovervollständigung zeigt nicht alle Methoden einer Klasse an IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 2
P Eclipse- Zip Datei als Prgramm IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 6
T Eclipse scheint awt Libary nicht zu besitzen IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 9
G eclipse mit neuestem JDK einrichten IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 4
P Cucumber Plugin Installation . Eclipse Warnmeldung IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 3
J Eclipse CDT Library einbinden IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 2
J Javac File generieren Eclipse oder IntellJ (JNI) IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 7
sham5 Eclipse-Remote-Debugging von Java mit mehreren Prozessen oder Ports oder Netzen IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 0
Arita wie kann man die automatische erstellte Ordner von Eclipse in D Drive ziehen? IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 2
nonickatall paho.client.mqttv3 in Eclipse installieren/einbinden IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 8
A Einbindung von FXML-Dateien in Eclipse IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 1
A JavaFX in Eclipse einbinden IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 22
nonickatall Remote Debugging Eclipse/Raspberry IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 12
H Outline Fenster (Gliederung) wird mit deutschem Sprachpaket nicht angezeigt, Eclipse IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 2
M Kann EGit nicht auf Eclipse installieren? IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 7
Tobero Eclipse Eclipse zeigt mir alles als Warnung an IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 3
B Versionen kontrollieren / dokumentieren mit Eclipse IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 9
keinLebenNurCode Eclipse Eclipse: Gelbes Hilfsfenster für Funktionen und Methoden anzeigen lassen IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 2
windl Probleme mit Eclipse unter Linux IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 8
B Kompilieren in Eclipse ( 2 Klasse ohne main()-Methode) IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 7
N Eclipse debug Gradle-Projekt IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 1
M Eclipse - Fehlermeldung bei JavaFX-Projekt "java.lang.module.FindException: Module javafx.controls not found" IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 23
P ERROR: org.eclipse.equinox.p2.engine code=0 session context was:(profile=C__Users_birgit_eclipse_java-2020-124_eclipse, phase=org.eclipse.equinox.inte IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 13
H Eclipse - Refactoring - mehrere Pakete geleichzeitig verschieben IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 2

Ähnliche Java Themen

Neue Themen


Oben