Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [platform-swt-dev] Question

copy the swt-win32-2026.dll into windows system directory.

----- Original Message ----- 
From: "Udo Kolm" <U_Kolm@xxxxxxxxxxx>
To: <platform-swt-dev@xxxxxxxxxxx>
Sent: Tuesday, October 29, 2002 4:10 PM
Subject: [platform-swt-dev] Question


> Hello 
> 
> I would like to develop an SWT application
> But when I starting the demo progs I've received
> The following error:
> 
> java.lang.UnsatisfiedLinkError: no swt-win32-2026 in java.library.path
> at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1403)
> at java.lang.Runtime.loadLibrary0(Runtime.java:788)
> at java.lang.System.loadLibrary(System.java:832)
> at
> org.eclipse.swt.internal.Library.loadLibrary(Library.java:102)
> at org.eclipse.swt.internal.win32.OS.<clinit>(OS.java:37)
> at
> org.eclipse.swt.widgets.Display.internal_new_GC(Display.java:1049)
> at org.eclipse.swt.graphics.Device.init(Device.java:533)
> at org.eclipse.swt.widgets.Display.init(Display.java:1068)
> at org.eclipse.swt.graphics.Device.<init>(Device.java:82)
> at org.eclipse.swt.widgets.Display.<init>(Display.java:262)
> at org.eclipse.swt.widgets.Display.<init>(Display.java:258)
> at swt.Demo1.main(Demo1.java:18)
> Exception in thread "main"
> 
> I'am using JDK 1.4.1
> 
> 
> The sample program is the following:
> 
> package swt;
> 
> /*
>  * (C) 2002 by 3plus4software GbR. All rights reserved.
>  */
> import org.eclipse.swt.SWT;
> import org.eclipse.swt.widgets.Display;
> import org.eclipse.swt.widgets.Label;
> import org.eclipse.swt.widgets.Shell;
> 
> /**
>  * Das erste Fenster...
>  */
> public class Demo1 {
> public static void main(String[] arguments) {
> // Erzeuge ein neues Display-Objekt für diese
> Applikation, das
> // danach über Display.getCurrent() zur Verfügung steht
> Display display = new Display();
> 
> // Erzeuge ein neues Shell-Fenster mit 320x200 Pixeln
> Größe
> Shell shell = new Shell(display);
> shell.setSize(320, 200);
> 
> // Füge dem Fenster ein Label hinzu
> Label label = new Label(shell, SWT.CENTER);
> label.setText("Hallo, Welt!");
> 
> // Lass das Label den gesamten verfügbaren Platz im
> Fenster ausfüllen
> label.setBounds(shell.getClientArea());
> 
> // Öffne das Fenster und verarbeite solange alle Events
> bis das
> // Fenster wieder geschlossen und somit die Applikation
> beendet wird
> shell.open();
> while (!shell.isDisposed()) {
> if (!display.readAndDispatch()) {
> display.sleep();
> }
> }
> 
> // Gib alle angeforderten Betriebssystem-Ressourcen
> wieder frei
> display.dispose();
> }
> }
> 
> 
> 
> 
> I am very interested to build programs with the swt but I have no Idea
> what to do here.
> 
> Can anybody help me?
> 
> Thanks in advance 
> Udo
> 
> 
> _______________________________________________
> platform-swt-dev mailing list
> platform-swt-dev@xxxxxxxxxxx
> http://dev.eclipse.org/mailman/listinfo/platform-swt-dev

Back to the top