[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
[eclipse-dev] Almost Crazy for org.eclipse.swt
|
Dear all,
I am a user of org.eclipse.swt. I am almost crazy for it. I tried to start a
simplest HelloWorld code so as to show the GUI interface. But I was faided a
lot of times!
I got the following errors,
java.lang.UnsatisfiedLinkError: no swt-win32-2026 (swt-win32-2026.dll) in
java.library.path
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1380)
at java.lang.Runtime.loadLibrary0(Runtime.java:766)
at java.lang.System.loadLibrary(System.java:849)
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 com.lblabs.swt.HelloWorld1.main(HelloWorld1.java:16)
Exception in thread "main"
Even if I followed the instructions of the examples in
org.eclipse.swt.examples, the error is the same! Help me!
The code is as follows,
package com.lblabs.swt;
import org.eclipse.swt.widgets.*;
public class HelloWorld1
{
public static void main(String[] args)
{
Display display = new Display();
Shell shell = new Shell(display);
shell.open();
while (!shell.isDisposed())
{
if (!display.readAndDispatch())
{
display.sleep();
}
}
}
}
The .classpath is as follows,
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="src" path=""/>
<classpathentry
kind="var" path="JRE_LIB" rootpath="JRE_SRCROOT" sourcepath="JRE_SRC"/>
<classpathentry kind="lib"
path="D:/Eclipse/plugins/org.eclipse.swt/ws/win32/swt.jar" sourcepath="D:/Eclipse/plugins/org.eclipse.swt/ws/win32/swtsrc.zip"/>
<classpathentry kind="output" path=""/>
</classpath>
Thanks so much!
Bing
_________________
| How are you? |_____ __
| I am Li Bing. | |__| |_________
|________________| OK? |::| | Need /
| \.____|::|__| Help? <
| \::/ \._______\
/\**/\ | ___________________________________
( o_o )_ |__|http://www.public.asu.edu/~libing /
(u--u \_) | |bing.li@xxxxxxx, 480-829-8492(H) /
(||___ )==\ |480-965-9038(L)602-743-9767(O) \
,dP"/b/=( /P"/b\ |__________________________________\
|8 || 8\=== || 8
`b, ,P `b, ,P
"""` """`