Debug Eclipse

motoric18

Bekanntes Mitglied
Hallo, habe zum ersten mal debug FUnktion ausgeführt.

Erhalte einige Fehler. Wie geht man den so vor bitte um Hilfe.

ClassLoader.findBootstrapClass(String) line: not available [native method]
Launcher$ExtClassLoader(ClassLoader).findBootstrapClass0(String) line: not available
Launcher$ExtClassLoader(ClassLoader).loadClass(String, boolean) line: not available
Launcher$AppClassLoader(ClassLoader).loadClass(String, boolean) line: not available
Launcher$AppClassLoader.loadClass(String, boolean) line: not available
Launcher$AppClassLoader(ClassLoader).loadClass(String) line: not available
Launcher$AppClassLoader(ClassLoader).loadClassInternal(String) line: not available

Diese werden mir angezeigt.
 
Zuletzt bearbeitet von einem Moderator:
M

maki

Gast
Tipps:
1. Übe dich in Geduld, 44 Minuten ohne Antwort sind kein Grund nachzufragen
2. Wozu willst du den Launcher/Clasloader debuggen??
 

motoric18

Bekanntes Mitglied
Wollte sehen ob es Fehler gibt. Und habe daher mein Programm debbugt.
Und erhalte Folgende Fehler:
Thread [main] (Suspended (exception ClassNotFoundException))
ClassLoader.findBootstrapClass(String) line: not available [native method]
Launcher$ExtClassLoader(ClassLoader).findBootstrapClass0(String) line: not available
Launcher$ExtClassLoader(ClassLoader).loadClass(String, boolean) line: not available
Launcher$AppClassLoader(ClassLoader).loadClass(String, boolean) line: not available
Launcher$AppClassLoader.loadClass(String, boolean) line: not available
Launcher$AppClassLoader(ClassLoader).loadClass(String) line: not available
Launcher$AppClassLoader(ClassLoader).loadClassInternal(String) line: not available

wie bekomme ich diese weg.
 

faetzminator

Gesperrter Benutzer
Das sind keine Fehler, sondern der Stacktrace. Zeig mal den gesamten Stacktrace der Exception. Oder sag uns zumindest, was nicht wie gewünscht funktioniert.
 
B

bygones

Gast
ich bezweifle dass dein Programm der ClassLoader bzw Launcher ist ?!

anscheinend gabs eine ClassNotFoundException in deinem programm. Poste doch mal die (also nicht debuggen, einfach laufen lassen und exception posten)
 
G

Gast2

Gast

motoric18

Bekanntes Mitglied
Hallo, es folgendermaßen.
Auf einigen Rechner läuft die Anwendung nicht.
Obwohl andere Anwendungen laufen.

Deswegen dachte ich zu debbugen.

Oder wie kann man Programmfehler noch analysieren.
Verwende eclipse.
 

hdi

Top Contributor
Auf einigen rechner sag dieser.
could not find the main.???

Kenne ich nur von Systemen deren Java-Installation durcheinander ist, zB durch die Installation mehrerer JRE's. Versuch das Programm auf diesen Systemen mal von der Shell zu starten (zB unter Windows die Eingabe-Aufforderung), evtl explizit mit dem -jar Flag. Sofern dein Programm auf mindestens einem System läuft, kann es nicht sein dass du keine main-class hast oder diese falsch in der MANIFEST-Datei angegeben ist.

Zum Debuggen: Du verwirrst uns ;) Sag uns mal ganz genau, was du tust um zu debuggen. Wo klickst du in Eclipse genau hin? Welche Datei/Projekt ist ausgewählt wenn du debuggst?
 

motoric18

Bekanntes Mitglied
Ich will die jre version ändern und es sag nicht kompatibel with Project. In Run Cofigurations.
habe festgestellt das auf anderen Rechner jre 1.5.. läuft
 
M

maki

Gast
Ist imho eine Fehlbedienung der IDE, sehe keinen hinweis auf eine erstellte jar, es geht wohl um ein projekt dass nicht bei jedem in der IDE läuft weil das Projekt nciht richtig konfiguriert ist.

Da hilft kein Debugger ;)
 

motoric18

Bekanntes Mitglied
Bei umstellung sagt eclipse
JRE not compatible with project .class file compatibility: 1.6. Aber ich wähle 1.5 aus.
Wo kann ich das genau festlagen????
 

hdi

Top Contributor
Ok, also das Debugging kannst du vergessen. Wie der Name sagt geht es dabei nur darum Bugs im Programm aufzuspüren. Ein Bug ist immer ein Laufzeitfehler, d.h. er tritt auf während das Programm läuft. Wenn es gar nicht erst startet, gibt es entweder einen Compile-Error - was aber da es zumindest bei dir/auf manchen Rechnern läuft hier wohl nicht der Fall sein wird - oder ein Problem mit dem JRE auf dem jeweiligen System.

Ich will die jre version ändern und es sag nicht kompatibel with Project. In Run Cofigurations.
habe festgestellt das auf anderen Rechner jre 1.5.. läuft
Du musst den Compiler ändenr, nicht das JRE. Rechtsklick auf Project -> Build Path. Alternativ musst du halt auf dem System wo du das Programm starten willst sicherstellen dass eine passende JRE-Installation vorliegt. Also entweder das JRE updaten auf Java 6 oder 7, oder eben im Build Path den Compiler für dein Projekt ändern. In diesem Fall kannst du natürlich keine Features oder API-Teile mehr im Code verwenden, die es unter 1.5 noch nicht gab.
 

hdi

Top Contributor
Rechtsklick auf Projekt -> Build Path -> Configure Build Path

Unter Librariers wirst du wohl Java 6 oder 7 haben. Lösch den Eintrag. Dann füge eine andere JRE Version ein:

Add Library -> System Library -> Ordner wählen, in dem Java 5 installiert ist (Das musst du natürlich erstmal machen).

Danach den Dialog schließen, wieder REchtsklick auf Projekt -> Properties -> Java Compiler
Eventuell dort nochmal explizit Java 1.5 einstellen
 
Ähnliche Java Themen
  Titel Forum Antworten Datum
N Eclipse debug Gradle-Projekt IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 1
G Eclipse Debug Perspektive IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 2
S Shutdownhooks unter Eclipse-Debug IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 3
P Unterschied bei Eclipse zwischen Release und Debug IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 2
S Eclipse Debug-Funktion: Statische Variablen IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 2
J Eclipse Warning und Debug Icon überlappen verhindern? IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 5
C Eclipse Debug View: Source not found IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 2
E Eclipse Automatisches Verlassen der Debug-Perspektive IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 2
A Eigenes Debug Tool IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 2
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
Eichi1979 Eclipse Fehler in Eclipse IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 10
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
H Eclipse Fehler beim starten des Projekts IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 13
B Kompilieren in Eclipse ( 2 Klasse ohne main()-Methode) IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 7
R Eclipse-Fehler IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 5
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 Fehler: Hauptklasse konnte nicht gefunden - bei Umwandlung in git IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 4
H Eclipse - Refactoring - mehrere Pakete geleichzeitig verschieben IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 2
T Eclipse, Console gibt Fragezeichen zurück. IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 4
N Eclipse aus Java-Application JavaFX machenModule javafx.controls not found IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 7
K Eclipse Einstellung "kaputt" IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 3
G Java Eclipse IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 1
M Einzelne Java-Dateien mit Eclipse compilieren - Wie geht das? IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 5
Robertop Eclipse Eclipse Startprobleme "Java was started but returned exit code=1" IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 6
Splayfer Problem mit der Eclipse Autovervollständigung... IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 2
ruutaiokwu Eclipse inkonsistent?? IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 4
T Eclipse - Keine Vorschläge außerhalb main-Methode IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 9
S Java8 Eclipse Nutzer will auf Java14 wechseln IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 13
H kann in Eclipse org.junit nicht importieren IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 2
C Eclipse Plugin ClassLoader IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 0
T Eclipse: Projekt aus meinem Workspace als Library auswählen IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 1
ruutaiokwu Eclipse Eclipse-Plugin für UML "Reverse Engineering", um aus Code Klassendiagramme zu erstellen IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 4
OSchriever Eclipse: JavaFX mit JDK11 nutzen IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 3
S Wie importiere ich am besten grosse Projekte in Eclipse am Beispiel von Apache ANT IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 4
U Eclipse und Tab Order IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 1
OSchriever Eclipse Eclipse - Automatischer import von Klassen IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 1
W Eclipse Eclipse: Blöcke farblich markieren ? IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 3
OSchriever Eclipse startet nicht mehr IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 8
H Eclipse Plug-in -> Fehler bei org.eclipse.e4.tools.bundle.spy IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 3
H Eclipse Che 7 Git Commit IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 2
H Eclipse Sipmles Plug-in laesst sich nicht starten -> window.getShell() IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 2
M Eclipse JavaFX JDK 12 - bekomme mein Projekt nicht mehr compiliert IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 36

Ähnliche Java Themen


Oben