Eclipse Git "Could not find or load main class"

TM69

Bekanntes Mitglied
Ich verwende Eclipse
Version: 2021-09 (4.21.0)
Build id: 20210910-1417


Ich habe folgendes gemacht.


  1. Über „New → Spring Starter Project“ habe ich mir ein Maven Spring Projekt über den Initializer erstellt
  2. Ich habe das erstellte Projekt ausgeführt. OHNE PROBLEME AUSGEFÜHRT.
  3. Danach habe ich mir eine Verbindung zu meinem GitHub – Repository erstellt.
  4. Dann habe „Team → Share Project“ aufgerufen und mir ein lokales Repository mit Verbindung zu meinem GitHub – Repository auf das Spring Projekt erstellt.


Ich wollte das Projekt über „Run As → Spring Boot App“ erneut ausführen.


Hierbei erhalte ich allerdings die Fehlermeldung
Error: Could not find or load main class com.tm69.myapp.MyAppApplication

Caused by: java.lang.ClassNotFoundException: com.tm69.myapp.MyAppApplication​

ich habe Versucht über Project → Clean und „Run As → Java Application“ auf die Main-Klasse ausführen, aber ohne Erfolg.

Jemand einen Tip, wie ich den Fehler beheben könnte? Bzw wer weis was hier falsch gelaufen ist?
 

Oneixee5

Top Contributor
Am Naheliegendsten wäre es, erst mal zu klären, ob die Klasse "om.tm69.myapp.MyAppApplication" existiert und ob diese Klasse über eine main-Methode verfügt.
 
Ähnliche Java Themen
  Titel Forum Antworten Datum
J Error: Could not find or load main class xyz (Eclipse) IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 7
T NetBeans NetBeans IDE 13 | Cannot find main class IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 8
F [Maven] cannot find plugins IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 0
O Eclipse Fehlermeldung: Unable to find a javac compiler; IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 3
M Eclipse Find usage? IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 4
E Eclipse Jar-File [,,Could not find the main class - program will exit"] IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 25
B Eclipse: Could not find the main Class IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 15
Flocreper Could not load plugin Fehler IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 2
H Eclipse SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder". IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 1
T Eclipse FTP und WebDAV Linux. Unable to load . IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 6
W Eclipse Rechnerabsturz - Datei der Main zerstört? IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 15
B Fehlermeldung: Selection does not contain a main type IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 1
B Kompilieren in Eclipse ( 2 Klasse ohne main()-Methode) IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 7
T Eclipse - Keine Vorschläge außerhalb main-Methode IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 9
M Intellij IDEA Programm ohne Main-Methode starten IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 6
wolfgang63 Eclipse findet main-methode nicht IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 2
N [ANT] Invalid signature file digest for Manifest main attributes IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 1
S Findet 'main' in Eclipse nicht IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 5
K Eclipse automatische main Klasse - Formatierung ändern ? IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 3
H NETBEANS 7.0 - Run findet kein main() IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 8
S JBuilder [ANT] Anfängerfragen zu ANT und der main class IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 4
H diverse IDEs: main-class nicht gefunden IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 3
J Main Methode in Netbeans IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 4
N NetBeans "main class not found" in NetBeans IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 17
T NB6.5: Fehler beim ausführen einer (Main)Klasse IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 3
S NetBeans; Anfängerfragen.insbesondere zur Main - Class IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 2
E could not fin d the main class. program will now exit IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 14
F Selection does not contain a main type IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 6
M mal wieder Could not finde the main class.Program will exit IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 5
B Netbeans Run main() mit args IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 2
G parameter an main übergeben in eclipse IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 2

Ähnliche Java Themen

Neue Themen


Oben