class not found exception / Source not found - Eclipse Ganym

Status
Nicht offen für weitere Antworten.
G

Guest

Gast
Hallo,

Ich habe ein Problem und zwar beim Debuggen in Eclipse.

Angenommen ich habe die folgenden 2 Klassen:

Code:
package testpac;

public class test {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		bla c = new bla(1);
		System.out.print(c.out());

	}

}

und

Code:
package testpac;

public class bla {
	private int a;
	bla(int b) {
		a=b;
	}
	public int out() {
		return a;
	}

}

Wenn ich nun einen Haltepunkt auf die Zeile bla c = new bla(1); setze und auf debug gehe, ist noch alles normal er springt in die Debug-Ansicht usw. Wenn man nun jedoch auf Nächsten Schritt (F5) klickt und eigentlich eine neue Instanz von bla erzeugt werden soll, bekomme ich immer eine class not found exception und im Fenster wird Source not found angezeigt.

Siehe:





Und das ganze bekomme ich nicht nur bei dieser Klasse sondern auch bei jeglichen anderen Versuchen eine Instanz zu erzeugen.

Ich verstehe einfach nicht wo dieser Fehler herkommen soll und relativ ratlos.
Weiß irgendwer woran das liegen könnte?

Ich bin dankbar für jeden Rat.
 

Wildcard

Top Contributor
Hast du vielleicht einen Exception Break Point gesetzt? Ist ja durchaus möglich das irgendwo in der Classloader Hierarchie eine Exception fliegt, die Klasse aber Schlussendlich von einem anderen Classloader doch noch gefunden wird.
Funktioniert es denn mit Step Over?
 
G

Gast

Gast
Hallo,

Ich hab einfach auf den Rand geklickt, sodass da ein blauer Punkt ist. Woran seh ich denn, dass es ein Exception Break Point ist?
 
Status
Nicht offen für weitere Antworten.
Ähnliche Java Themen
  Titel Forum Antworten Datum
I Eclipse Ant: Class not Found IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 5
N NetBeans "main class not found" in NetBeans IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 17
M Eclipse - Class File Editor -> Source not found IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 2
B Probleme beim erstellen von Java Class IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 3
T Eclipse Git "Could not find or load main class" IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 1
T NetBeans NetBeans IDE 13 | Cannot find main class IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 8
M HILFE! Class wird doppelt erzeugt IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 5
J Error: Could not find or load main class xyz (Eclipse) IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 7
H Eclipse SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder". IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 1
J NetBeans Netbeans, Linux -> Was ist ein "bootstrap class path error" und wie kann man das wegbekommen? IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 3
R Auf einmal viele Class-Files weg IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 16
M Eclipse Class-Datei exportieren IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 4
C Eclipse Wie kann ich .class-Datei mit eclipse importieren? IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 9
E Eclipse Jar-File [,,Could not find the main class - program will exit"] IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 25
R Eclipse Class File Editor IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 11
S Eclipse Versionswechsel, visual class IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 2
S JBuilder [ANT] Anfängerfragen zu ANT und der main class IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 4
S NetBeans Serializable Class ohne package IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 2
H diverse IDEs: main-class nicht gefunden IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 3
C Eclipse Open Type soll keine .class anzeigen IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 5
S NetBeans class, jar, package. Wie am besten machen bei Applet mit Web-Projekt? IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 6
B Eclipse: Could not find the main Class IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 15
sc0p Eclipse: .class nicht editierbar IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 8
J NetBeans JUnit 4.5: initialization Error caused an ERROR: Test class can only have one constructor IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 4
J class-File-Splitter-Tool gesucht IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 2
A IntelliJ zeigt meine class-Files nicht an!? IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 2
T Eclipse, Breakpoints, TimerThread,class IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 6
J class-dateien verschwunden (eclipse) IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 4
S NetBeans; Anfängerfragen.insbesondere zur Main - Class IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 2
K class importieren [eclipse] IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 5
J Eclipse erzeugt mir keine .class-Dateien mehr IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 3
G Eclipse: .class wird nicht angelegt IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 8
E could not fin d the main class. program will now exit IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 14
M mal wieder Could not finde the main class.Program will exit IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 5
N Eclipse-Class-Date in Tomcat - Bad Version Number IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 2
B Externe Class-Dateien ins Jar-Archiv aufnehmen IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 6
G Eclipse - Class-Dateien einfügen IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 6
S Verwendung von class-Dateien in Eclipse IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 3
M [Netbeans] Class Datei einbinden IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 8
S Borland JBuilder: .class bzw. .jar erstellen IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 8
J Fenster öffnen per Button klick erstellt mit Visual Class IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 2
M NetBeans 3.6: class-Files Ausgabepfad festlegen IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 3
M Eclipse - Fehlermeldung bei JavaFX-Projekt "java.lang.module.FindException: Module javafx.controls not found" IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 23
N Eclipse aus Java-Application JavaFX machenModule javafx.controls not found IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 7
Tommy135 Error not found java.dll IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 5
J No suitable driver found for jdbc IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 1
C Eclipse Debug View: Source not found IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 2
T Eclipse Update - Workaround für No repository found containing… IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 2
W Eclipse "Source not found" IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 3
N source not found in eclipse IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 4
L Eclipse mit DTP - ClassNot Found Error IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 2
T Netbeans 4.1 --> junit library could not be found ? IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 6
coolian warum bekomm ich immer wieder wenn ich irgendwas mach eine java.lang.nullpointer exception in eclipse IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 4
looparda Variablen bei Exception loggen IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 4
K Eclipse Neon: loop event handler exception IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 0
S JUnit Exception expected IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 3
J NetBeans vollständigen Exception-Traceback anzeigen IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 5
M NetBeans JavaDB Exception IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 1
B Eclipse Eclipse - Fatal Exception Occured IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 2
S Eclipse: Javadoc Exception Error IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 5
H Eclipse Fehlermeldung???? (Exception processing async thread queue) IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 1
C Eclipse Installationspfad statt Projektpfad java.io.fileNotFound Exception IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 1
S Exception in Eclipse, aber nicht bei normaler Kompilierung IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 5
G Eclipse, Ursprung einer Exception finden IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 11

Ähnliche Java Themen

Neue Themen


Oben