Eclipse JDK bzw. JDE für Eclipse funktioniert nicht

Java-Insel

Aktives Mitglied
Ich habe ein Problem mit Eclipse, weiß aber nicht, wie ich es lösen kann. Und zwar:

Ich habe die JDK bzw. JDE auf meinem Computer installiert (also eigentlich war es schon vorher drauf; ich habe einen iMac OSX 10.6.8) und Eclipse natürlich auch (erst für PHP Developers, aber das Java-Plugin war schon enthalten; ich musste es nur aktivieren). Problem: Das Programm tut so, als ob keine Java-Librarys da wären und weist mich deswegen auf Fehler hin, die überhaupt keine sind, z.B.:
Java:
public class Beispiel {
  public static void main (String[] args) {
    //text, text, text...
  }
}

Ich hab schon überall geguckt :rtfm: , aber ich finde nichts, was mir weiterhelfen könnte.

Anscheinend muss ich noch etwas aktivieren oder so, kann mir jemand helfen?
 

Java-Insel

Aktives Mitglied
Meinst du unter den Properties? Ich find den Classpath nicht...(hab's mal unter der Suche versucht, funzt aber auch nicht).

Ich hab übrigens jetzt ein neues Thema angelegt mit JavaSE-1.7 (also unter den Einstellungen).
Vielleicht hängt es auch damit zusammen, dass das Package, in dem ich die ganzen Sachen mache, noch default heißt und nicht wie der Ordner..?
 

Cody

Aktives Mitglied
Prüfe und mache mal bitte folgendes:

1.) Hauptmenü: Window->Preferences :: Java->"Installed JREs" auswählen
Ist in der dortigen Tabelle ein JDK/JRE eingetragen ?
Wenn nicht: Add->Standard VM->Next
Dort bei "JRE home" das root-Verzeichnis deiner JDK Installation auswählen -> Finish

Wenn ja:
2. Rechtsklick auf dein Projekt->Buildpath->"Configure Build Path"
Im dortigen Dialog den "Libaries" Tab aktivieren -> rechts auf "Add Library" und dann "JRE System Library" auswählen-> Next
Hier den Radiobutton vor "Alternate JRE" aktivieren und aus dem Dropdown Menü das unter Punkt 1 hinzugefügte JRE/JDK auswählen->Finish->OK

Jetzt sollte in deinem Projekt ein Build Path entry "JRE System Library [JDK ....]" erscheinen.

Das sollte es gewesen sein. ;)
 

Java-Insel

Aktives Mitglied
Das geht erstaunlicherweise nicht... Aber warum :bahnhof: ? Auf Mac ist das ja unter System/Library/Java, das habe ich auch ausprobiert, ging aber nicht: es kam eine Fehlermeldung, dass das kein root Verzeichnis für das JDK sein könnte. Also hab ichs mit den unterordnern versucht, ging aber auch nicht. Und die Java1.6.0.jdk (oder so ähnlich) konnte ich auch nicht auswählen. Und, nein, in dieser Liste steht noch kein jdk drin.
 
Ähnliche Java Themen
  Titel Forum Antworten Datum
R Eclipse mehr Speicher für VM geben funktioniert nicht IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 6
F Eclipse für Java 1.8 ARM einrichten IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 6
B .exe Datei für Eclipse Java Programm erstellen? IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 9
LimDul IDEA IntelliJ Tipps für den Umstieg von Eclipse auf intelliJ IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 4
keinLebenNurCode Eclipse Eclipse: Gelbes Hilfsfenster für Funktionen und Methoden anzeigen lassen IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 2
ruutaiokwu Eclipse Eclipse-Plugin für UML "Reverse Engineering", um aus Code Klassendiagramme zu erstellen IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 4
K Eclipse für Java, Python und C/C++ IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 5
A Eclipse Eclipse mit eigenem Plugin braucht für ersten Start sehr lange IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 1
M Eclipse Funktionierender DarkTheme für Eclipse auf MacOS X IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 4
N Eclipse Plug-In für farbliche Hervorhebung von Codeblöcken vorhanden??? IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 3
H GUI Builder Jigloo für Eclipse Helios ??? IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 4
wolfgang63 Einfügeposition für generierten Code in Eclipse Kepler IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 2
A Eclipse Export/Auscheacken des Java-Projekts aus Eclipse für anderen Distributionen IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 9
T Anfänger: UML-Plugin für Eclipse IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 3
O Eclipse (+ Jre, Jdk, usw..) für iPod Touch/iPhone IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 2
M JavaFX-Plugin für Eclipse Juno IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 5
E mysql-connector für Eclipse DB plugin IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 7
S OpenJDK: mit Eclipse auf Windows für Linux IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 7
GUI-Programmer Eclipse C/C++ für Eclipse aufrüsten IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 3
G Eclipse Eclipse Plugin für Debian Paket Erstellung (DEB)? IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 3
B GUI Builder für Eclipse? IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 1
I BPMN für eclipse IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 4
P Eclipse Welche Eclipse Version für Win64bit? IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 2
Kr0e Eclipse Tool für Jars - Automatisch Dependencies einbinden IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 12
K JSF EL Content Assist für @Named CDI in Eclipse IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 2
P Eclipse Code Review Tool für Eclipse IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 12
R Guter GUI Editor für Eclipse? IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 4
H XSD / WSDL Werkzeug für Eclipse IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 4
S Problem mit javacc-Plugin für Eclipse IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 8
B Hibernateplugin für Eclipse 3.5.1 IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 4
A Eclipse-Plugin für eigenes Code-Folding IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 2
Houly GUI-Builder Plugin für Eclipse IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 2
P Eclipse Workspace für verschiedene User konfigurieren IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 4
S PASCAL-Plugin für Netbeans/Eclipse IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 2
X Eclipse Update Site für Intranet mit Buckminster Plugin nicht vollständig IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 7
A Free UML Editor für Eclipse? Empfehlung? IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 2
X Eclipse Update Site teilweise für lokales Intranet spiegeln IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 25
T Eclipse Update - Workaround für No repository found containing… IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 2
M Eclipse als CVS-Client für externe Dateien IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 4
S Eclipse Tastenkombinationen für z.B. TestCase IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 2
E Neuer? SwingBuilder für Eclipse IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 6
J kostenloses UML-Tool für Eclipse Ganymed? IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 4
T iReport für Eclipse? IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 6
T UML aus Quellcode (am liebsten für Eclipse) IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 2
S SVN-Plugin für Eclipse IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 3
G Aeltere Java Version für Eclipse Projecte IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 2
S Shortcuts für Eclipse IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 5
G Parameter für Eclipse IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 4
F Maven plugin für Eclipse: tld dependencies in jars IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 2
GilbertGrape MyEclipse für Eclipse Ganymede IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 9
GilbertGrape Eclipse: shortcut für "add unimplemented methods" IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 12
O Suche ne Eclipse Version für ein Java Web Projekt IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 3
G Wird der Visual Editor für Eclipse weiterentwickelt? IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 4
R vernünftiges ftp plugin für eclipse IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 3
Antoras Eclipse Plugin für grafische Oberflächen IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 4
T XML Plugin für Eclipse Ganymede IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 6
N Eclipse Plugin für XML / XSL Transformation gesucht IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 2
G Gui-Builder-Plugin für Eclipse ? IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 7
Y Eclipse Plugin für Coverage IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 5
P Zend Studio für Eclipse mit Java erweitern IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 4
tfa Build-Skript für Eclipse-Projekte IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 10
eskimo328 code completion für JSF (Eclipse) IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 4
B GUI-Builder für Eclipse IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 8
R Deutsche Sprachdatei für Eclipse 3.3 IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 2
G UML für Eclipse IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 3
L Welche Plug-Ins für Eclipse IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 5
K eclipse plugin für oberflächen programierung? IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 6
F Eclipse Warnings ausschalten für ein Package? IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 3
L Designfrage für Eclipse! IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 11
I Sysdeo-Plugin für Eclipse / Tomcat - wo downloaden? IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 11
M Eclipse für JSP und Servlets IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 7
F UML2 für Eclipse IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 10
padde479 PL/SQL Plugin für Eclipse IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 4
B Deutsches Sprachpaket für Eclipse 3.2 ? IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 7
M Eclipse und extrahieren von Strings für Property Datei? IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 6
S uml plugin für eclipse IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 11
G uml plug-in für eclipse IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 2
H Tutorial für CVS mit Eclipse IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 7
Icewind Problem mit Eclipse 3.1 und kompillierung für java 1.4 IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 2
A Eclipse Plug In für Visualisierungszwecke? IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 3
0 Neues Lomboz und neuer VisualEditor für Eclipse 3.1M6 IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 2
G GUI Builder für Eclipse IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 10
G gui builder plugin für eclipse IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 5
B EclipseUML für Eclipse 3 IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 14
A Visual Editor von/für Eclipse gesucht IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 3
G Eclipse: Parameter für Anwendung setzen IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 3
A MySQL-Plugin für Eclipse 2.1 IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 7
C Erfahrung GUI-Buildern für Eclipse IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 5
N UML-Plugin für Eclipse 3.0 IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 6
N Plugin für Eclipse entwickeln?! IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 4
B Welche Plugins sind für Eclipse nützlich? IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 9
M Netbeans nutzt veraltete Bibliotheken für JAX-WS IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 2
P Online IDE für mehrere Klassen IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 3
I Suche eine IDE in deutsch für Java und Android IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 20
B Konsolenbefehl für Javaprogramm herausfinden? IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 16
T Java-Version für BlueJ-Mac-Version IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 2
Zrebna Eclipse Für Nutzung von JPA zwingend 'IDE for Java EE Developers notwendig'? IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 5
S Netbeans unterstützung für "Rule Switch" - Bug? IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 8
anton1 Umfrage für Facharbeit IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 0
P Maven für Intellij IDEs - Eclipse, IntelliJ IDEA, BlueJ & mehr 4

Ähnliche Java Themen

Neue Themen


Oben