Gestern hatte ich in einem Java-Ordner noch die Fehlermeldung: Hauptklasse nicht gefunden. Heute läuft wieder alles. Aber trotzdem würde ich gerne wissen, woran es gelegen haben könnte. Die Fehlermeldung galt für das ganze (default package) als Unterverzeichnis zu src und das als Unterverzeichnis zum Projekt Java-Schnelleinstieg. Ich verwende Eclipse.
Unten steht meine .classpath-Datei. Fehlt eine Zeile?
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="src" path="src"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-17">
<attributes>
<attribute name="module" value="true"/>
</attributes>
</classpathentry>
<classpathentry kind="lib" path="C:/Users/Admin/Downloads/mysql-connector-j-9.4.0">
<attributes>
<attribute name="module" value="true"/>
</attributes>
</classpathentry>
<classpathentry kind="output" path="bin"/>
</classpath>
Unten steht meine .classpath-Datei. Fehlt eine Zeile?
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="src" path="src"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-17">
<attributes>
<attribute name="module" value="true"/>
</attributes>
</classpathentry>
<classpathentry kind="lib" path="C:/Users/Admin/Downloads/mysql-connector-j-9.4.0">
<attributes>
<attribute name="module" value="true"/>
</attributes>
</classpathentry>
<classpathentry kind="output" path="bin"/>
</classpath>
Zuletzt bearbeitet:
