Kann nicht finden die Klasse-Datei für org.eclipse.swt.widgets.XXX
Bin ich mit Eclipse Indigo und kann nicht kompilieren von code, die gut funktioniert haben, bevor Sie in Ganymede. Ich bin nicht in der Lage, importieren Sie die folgenden Klassen:
import org.eclipse.swt.SWT;
import org.eclipse.swt.custom.CTabFolder;
import org.eclipse.swt.custom.CTabItem;
import org.eclipse.swt.layout.GridData;
import org.eclipse.swt.layout.GridLayout;
import org.eclipse.swt.widgets.Composite;
Ich habe versucht, die Suche für SWT in Eclipse Marketplace konnte aber nicht die Bibliothek finden. Auch habe ich andere Beiträge gelesen, die sagen neu erstellen mein Projekt (was ich auch Tat) und andere empfehlen den download "die TÜTE". Weiß jemand, was JAR muss ich herunterladen? Oder, wie zu beheben mein build path aus, damit diese SWT-Bibliotheken?
Classpath (DannyGui sollte es zweimal):
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="src" path="com.danny.DannyGui.plugin/src"/>
<classpathentry exported="true" kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.6"/>
<classpathentry exported="true" kind="lib" path="C:/DannyGui/DannyGui/com.danny.DannyGui.plugin/third_party_libs/JFreeChart/swtgraphics2d.jar"/>
<classpathentry exported="true" kind="lib" path="C:/DannyGui/DannyGui/com.danny.DannyGui.plugin/third_party_libs/antlr/stringtemplate-3.2.jar"/>
<classpathentry exported="true" kind="lib" path="C:/DannyGui/DannyGui/com.danny.DannyGui.plugin/third_party_libs/antlr/antlr-2.7.7.jar"/>
<classpathentry exported="true" kind="lib" path="C:/DannyGui/DannyGui/com.danny.DannyGui.plugin/third_party_libs/antlr/antlr-3.1.3.jar"/>
<classpathentry exported="true" kind="lib" path="C:/DannyGui/DannyGui/com.danny.DannyGui.plugin/third_party_libs/antlr/antlr-runtime-3.1.3.jar"/>
<classpathentry exported="true" kind="lib" path="C:/DannyGui/DannyGui/com.danny.DannyGui.plugin/third_party_libs/antlr/gunit.jar"/>
<classpathentry exported="true" kind="lib" path="C:/DannyGui/DannyGui/com.danny.DannyGui.plugin/third_party_libs/JacORB/wrapper-3.1.0.jar"/>
<classpathentry exported="true" kind="lib" path="C:/DannyGui/DannyGui/com.danny.DannyGui.plugin/third_party_libs/JacORB/antlr-2.7.2.jar"/>
<classpathentry exported="true" kind="lib" path="C:/DannyGui/DannyGui/com.danny.DannyGui.plugin/third_party_libs/JacORB/avalon-framework-4.1.5.jar"/>
<classpathentry exported="true" kind="lib" path="C:/DannyGui/DannyGui/com.danny.DannyGui.plugin/third_party_libs/JacORB/backport-util-concurrent.jar"/>
<classpathentry exported="true" kind="lib" path="C:/DannyGui/DannyGui/com.danny.DannyGui.plugin/third_party_libs/JacORB/idl.jar"/>
<classpathentry exported="true" kind="lib" path="C:/DannyGui/DannyGui/com.danny.DannyGui.plugin/third_party_libs/JacORB/jacorb.jar"/>
<classpathentry exported="true" kind="lib" path="C:/DannyGui/DannyGui/com.danny.DannyGui.plugin/third_party_libs/JacORB/logkit-1.2.jar"/>
<classpathentry exported="true" kind="lib" path="C:/DannyGui/DannyGui/com.danny.DannyGui.plugin/third_party_libs/JacORB/picocontainer-1.2.jar"/>
<classpathentry exported="true" kind="lib" path="C:/DannyGui/DannyGui/com.danny.DannyGui.plugin/third_party_libs/JFreeChart/gnujaxp.jar"/>
<classpathentry exported="true" kind="lib" path="C:/DannyGui/DannyGui/com.danny.DannyGui.plugin/third_party_libs/JFreeChart/iText-2.1.3.jar"/>
<classpathentry exported="true" kind="lib" path="C:/DannyGui/DannyGui/com.danny.DannyGui.plugin/third_party_libs/JFreeChart/jcommon-1.0.15.jar"/>
<classpathentry exported="true" kind="lib" path="C:/DannyGui/DannyGui/com.danny.DannyGui.plugin/third_party_libs/JFreeChart/jfreechart-1.0.12.jar"/>
<classpathentry exported="true" kind="lib" path="C:/DannyGui/DannyGui/com.danny.DannyGui.plugin/third_party_libs/JFreeChart/jfreechart-1.0.12-experimental.jar"/>
<classpathentry exported="true" kind="lib" path="C:/DannyGui/DannyGui/com.danny.DannyGui.plugin/third_party_libs/JFreeChart/jfreechart-1.0.12-swt.jar"/>
<classpathentry exported="true" kind="lib" path="C:/DannyGui/DannyGui/com.danny.DannyGui.plugin/third_party_libs/JFreeChart/junit.jar"/>
<classpathentry exported="true" kind="lib" path="C:/DannyGui/DannyGui/com.danny.DannyGui.plugin/third_party_libs/JFreeChart/servlet.jar"/>
<classpathentry exported="true" kind="lib" path="C:/DannyGui/DannyGui/com.danny.DannyGui.plugin/third_party_libs/log4j/log4j-1.2.15.jar"/>
<classpathentry kind="output" path="bin"/>
</classpath>
Vielen Dank im Voraus.
- Ich sollte hinzufügen, hier ist meine eigentliche Fehler: Das Projekt wurde nicht gebaut, da seine build-Pfad ist unvollständig. Kann nicht finden die Klasse-Datei für org.eclipse.swt.widgets.Composite. Update der build-Pfad dann versuchen, den Bau dieses Projekt. Das Projekt wurde nicht gebaut, da seine build-Pfad ist unvollständig. Kann nicht finden die Klasse-Datei für org.eclipse.swt.widgets.Composite. Update der build-Pfad dann versuchen, den Bau dieses Projekt.
- konnte Sie nach dem Inhalt Ihres Projekts .classpath-Datei?
- Classpath Hinzugefügt...
- Ich stehe korrigiert, die ich gerade importiert mein Projekt in Ganymed und ich bekomme den gleichen Fehler. Also, sind Sie wahrscheinlich auf etwas zu sein, könnte der classpath...
Du musst angemeldet sein, um einen Kommentar abzugeben.
Dem Laufenden .classpath-Datei, die nichts enthält, was, von wo SWT-Klassen geladen werden können. Dieses Projekt wäre nicht bauen, da ist in jeder version von Eclipse.
Es klingt wie Sie versuchen zu bauen als stand-alone SWT-app (im Gegensatz zu sagen, ein Eclipse-plugin). Standalone-apps müssen SWT-Bibliothek im classpath. Sie sehen nicht, SWT Eclipse Marketplace werden Sie nicht auf der Suche nach einem plugin erweitern Sie Ihre Eclipse. Sie sind auf der Suche nach einer Bibliothek für Ihr Projekt zu verlassen. Sie download SWT als zip, die du entpacken irgendwo auf Ihrem system. Das zip enthält .jar-Datei und native Bibliotheken, die Teil von SWT-Implementierung.
Anstatt Ihnen einen direkten link, ich werde Ihnen zeigen, wie Sie es finden. Starten Sie auf der Eclipse-Plattform, download-Website:
http://download.eclipse.org/eclipse/downloads/
Ignorieren development builds. Suchen Sie unter den neusten Versionen. Gerade jetzt, das wäre 3.7. Folgen Sie diesem link zu einer Seite erstellen. Suchen Sie für SWT in Richtung der Unterseite. Laden Sie die zip-Datei an, die für Sie richtige system. Entpacken Sie es und fügen Sie einen Verweis auf die enthaltene jar von deinem Projekt classpath.
die neueste swt für 3.7: http://download.eclipse.org/eclipse/downloads/drops/R-3.7-201106131736/index.php#SWT