Suche SWT Binary and Source (Eclipse)

Von: , Frage gestellt am Mi, 9. Dez 2009

Hallo,

ich bin ein Neuling in Java. Ich wollte das Tutorial Create a Hello World SWT application unter Eclipse mal ausprobieren.Ich bleibe aber an diesem Punkt hängen:

Open your Web browser to http://eclipse.org/downloads/, navigate to the Eclipse Platform project section, select the latest release build, and find the SWT Binary and Source download.

Ich nutze Eclipse unter Linux bzw SUSE. Ich finde das Paket nicht auf der Website und nicht in der Softwaresuche unter Yast.

Kann mir jemand den Link oder so geben? Wäre sehr nett!

5 Antworten zu dieser Frage

  1. Antwort von nach einer Stunde 1 hilfreich
    Re: Suche SWT Binary and Source (Eclipse)

    Ich nutze Eclipse unter Linux bzw SUSE. Ich finde das Paket
    nicht auf der Website und nicht in der Softwaresuche unter
    Yast.
    Hallo,

    wenn Du Eclipse schon nutzt, dann benutz doch die Eclipse eigene Funktion Software (plug-ins) nachzuinstallieren.

    Eclipse starten -> Window -> Help -> Software Updates....
    Solltest Du in Deiner Eclipse-Version die Möglichkeit haben, die Plg-In-Development-Perspective zu öffnen, dann sind alle notwendigen Pakete bereits installiert.
    Wenn Du zur Bedienung von Eclipse noch Fragen hast, meld Dich nochmal.

    Gruß, Stephan

    • Antwort von nach 23 Stunden 0 hilfreich
      Re^2: Suche SWT Binary and Source (Eclipse)

      Danke schon mal für die Antwort, also ich habe da schon mal reingeschaut, aber das Fenster ist fast leer.

      Ich habe unter Installed Software nur
      - Eclipse Platform 3.4

      Wenn ich updaten will,dann sagt er mir ich sei auf dem neusten Stand

      Unter

      Available Software

      muss ich eine Seite einfügen, die Liste ist leer... normal oder nicht?

      • Antwort von nach einem Tag 1 hilfreich
        Re^3: Suche SWT Binary and Source (Eclipse)

        Unter

        Available Software

        muss ich eine Seite einfügen, die Liste ist leer... normal
        oder nicht?
        Da sollte eigentlich zumindest die Eclipse update site drinstehen.
        Füge mal folgende Seite hinzu:http://download.eclipse.org/releases/ganymede

        Wenn das passiert ist, öffne den Baum zu java development und anschließend plugin development. Das ist der der Teil, den Du brauchst.

        Gruß, Stephan

        • Antwort von nach 3 Tagen 0 hilfreich
          Re^4: Suche SWT Binary and Source (Eclipse)

          Hallo,

          ja das hat super geklappt! :)

          Ich habe jetzt die Schritte weiterverfolgt im Tutorial.

          Ich habe bis jetz dies alles gemacht:

          Now we need a project to store our own source code. In the main toolbar, click on the New Java Project button, or click on the link below. Enter HelloWorldSWT for the project name, then click Finish.

          Since our project requires SWT, we need to specify this in the project properties. Right-click on the project and select Properties.
          In the Java Build Path page open the Projects tab, add the org.eclipse.swt project, then click OK.

          The next step is to create a new class. In the main toolbar, click on the New Java Class button (or the link below). If not already specified, select HelloWorldSWT/src as the source folder. Enter HelloWorldSWT for the class name and select the checkbox to create the main() method, then click Finish.
          The Java editor will automatically open showing your new class.

          In the Java editor, enter the following Java code in the main() method:
          Display display = new Display();
          Shell shell = new Shell(display);
          shell.setText("Hello world!");
          shell.open();
          while (!shell.isDisposed()) {
          if (!display.readAndDispatch()) display.sleep();
          }
          display.dispose();
          You will get compile errors. Right click in the Java editor and select Source > Organize Imports, then save your changes.

          Bekomme aber beim kompilieren noch folgende Fehlermeldung:

          Exception in thread "main" java.lang.Error: Unresolved compilation problems:
          Display cannot be resolved to a type
          Display cannot be resolved to a type
          Shell cannot be resolved to a type
          Shell cannot be resolved to a type

          at HelloWolrdSWT.main(HelloWolrdSWT.java:10)

          Anscheinend kennt er Dispaly und Shell immer noch nicht...
          Hättest du eine Ahnung was ich falsch machen könnte? :/

          • Antwort von nach 4 Tagen 0 hilfreich
            Re^5: Suche SWT Binary and Source (Eclipse)

            Hallo,

            jetzt wird es schwierig, das Problem schriftlich zu lösen.
            Zunächst mach mal folgendes:
            Wenn Eclipse gestartet ist, drücke strg + 3 und gib in dem Popup "problem" ein. Dann solltest Du die Möglichkeit haben, die Problem-View zu öffnen.
            In ihr werden sämtliche Kompilierfehler angezeigt. Wenn Du dort in eine Zeile doppelt klickst, bekommst Du eine detailierte Beschreibung. Wenn Du mit der rechten Maustauste klickst, bekommst Du unter Umständen einen "Quick-Fix" angeboten, der Dir hilft das Problem zu lösen.
            Wenn Du das geschafft hast und nicht weiterkommst, meld Dich nochmal.

            Gruß, Stephan

Keine passende Antwort gefunden? Jetzt eigene Frage stellen!