java.lang.UnsatisfiedLinkError [message #49598] |
Fri, 08 April 2005 19:00  |
Eclipse User |
|
|
|
Hello,
I am new to eclipse, I just installed the latest eclipseSDK_3.1M6 & tptp
builds. and wrote my first SWT app by just copying main() from the eclipse
tutorial which is somewhat outdated. Somehow the dll file is not in the
plugins\, but somewhere in the configurations\, so I copied it to the
following location.
-Djava.library.path=C:\eclipse_org_SDK3.1M6\eclipse\plugins\ org.eclipse.swt.win32_3.1.0\os\win32\x86
Still, it still can not find swt-win32-3128.dll. Can somebody help me with
this?
Thanks!
-yu
java.lang.UnsatisfiedLinkError: no swt-win32-3128 in java.library.path
at java.lang.ClassLoader.loadLibrary(Unknown Source)
at java.lang.Runtime.loadLibrary0(Unknown Source)
at java.lang.System.loadLibrary(Unknown Source)
at org.eclipse.swt.internal.Library.loadLibrary(Library.java:12 3)
at org.eclipse.swt.internal.win32.OS.<clinit>(OS.java:18)
at org.eclipse.swt.widgets.Display.<clinit>(Display.java:125)
at HelloWorld.main(HelloWorld.java:20)
Exception in thread "main"
public static void main(String[] args) {
Display display = new Display();
Shell shell = new Shell(display);
Label label = new Label(shell, SWT.CENTER);
label.setText("Hello_world");
label.setBounds(shell.getClientArea());
shell.open();
while (!shell.isDisposed()) {
if (!display.readAndDispatch())
display.sleep();
}
display.dispose();
}
|
|
|
|
Re: java.lang.UnsatisfiedLinkError [message #49656 is a reply to message #49625] |
Fri, 08 April 2005 19:46   |
Eclipse User |
|
|
|
I saw people had similar problem, and I also unjar the following jar file
from the plugins\. But I still got the same error, I can see the 3128.dll
file is in the java.library.path, but it just can not be found from the
simple swt program, what's wrong, any ideas??
C:\eclipse_org_SDK3.1M6\eclipse\plugins\org.eclipse.swt.win3 2_3.1.0.jar
The above jar also included in the CLASSPATH.
"Steve Blass" <swb@aurora.phys.utk.edu> wrote in message
news:d374ab$c16$1@news.eclipse.org...
> Yu Chen wrote:
>> Hello,
>>
>> I am new to eclipse, I just installed the latest eclipseSDK_3.1M6 & tptp
>> builds. and wrote my first SWT app by just copying main() from the
>> eclipse tutorial which is somewhat outdated. Somehow the dll file is not
>> in the plugins\, but somewhere in the configurations\, so I copied it to
>> the following location.
>>
>>
>> -Djava.library.path=C:\eclipse_org_SDK3.1M6\eclipse\plugins\ org.eclipse.swt.win32_3.1.0\os\win32\x86
>>
>>
>> Still, it still can not find swt-win32-3128.dll. Can somebody help me
>> with this?
>>
>>
>>
>> Thanks!
>>
>> -yu
>>
>> java.lang.UnsatisfiedLinkError: no swt-win32-3128 in java.library.path
>>
>> at java.lang.ClassLoader.loadLibrary(Unknown Source)
>>
>> at java.lang.Runtime.loadLibrary0(Unknown Source)
>>
>> at java.lang.System.loadLibrary(Unknown Source)
>>
>> at org.eclipse.swt.internal.Library.loadLibrary(Library.java:12 3)
>>
>> at org.eclipse.swt.internal.win32.OS.<clinit>(OS.java:18)
>>
>> at org.eclipse.swt.widgets.Display.<clinit>(Display.java:125)
>>
>> at HelloWorld.main(HelloWorld.java:20)
>>
>> Exception in thread "main"
>>
>>
>>
>> public static void main(String[] args) {
>>
>> Display display = new Display();
>>
>> Shell shell = new Shell(display);
>>
>> Label label = new Label(shell, SWT.CENTER);
>>
>> label.setText("Hello_world");
>>
>> label.setBounds(shell.getClientArea());
>>
>> shell.open();
>>
>> while (!shell.isDisposed()) {
>>
>> if (!display.readAndDispatch())
>>
>> display.sleep();
>>
>> }
>>
>> display.dispose();
>>
>> }
>>
>>
>>
>>
>
> I had a similar problem with 3.1M6 where it couldn't find the swt dll to
> run my SWT application. The dll is in the swt jar. I copied the dll out
> of the jar into a directory on the library path so it could be found and
> then the application would run.
|
|
|
|
Re: java.lang.UnsatisfiedLinkError [message #50692 is a reply to message #49930] |
Mon, 11 April 2005 12:00  |
Eclipse User |
|
|
|
Thanks!! It works now, I copied the dlls to the system32 dir. -yu
"Eric Clayberg" <clayberg@instantiations.com> wrote in message
news:d39jsl$1oj$1@news.eclipse.org...
> "Yu Chen" <yuchen@bea.com> wrote in message
> news:d375ds$d8k$1@news.eclipse.org...
>>I saw people had similar problem, and I also unjar the following jar file
>>from the plugins\. But I still got the same error, I can see the 3128.dll
>>file is in the java.library.path, but it just can not be found from the
>>simple swt program, what's wrong, any ideas??
>>> I had a similar problem with 3.1M6 where it couldn't find the swt dll to
>>> run my SWT application. The dll is in the swt jar. I copied the dll
>>> out of the jar into a directory on the library path so it could be found
>>> and then the application would run.
>
> Under M6, you need to extract the three DLLs from the new
> org.eclipse.swt.win32_3.1.0.jar file and copy them to your
> windows/system32 directory (or somewhere else on yoru path).
>
> You should then be able to use "Run As > Java Application" to run them.
> Don't use "Run As > SWT Application" as that is broken in M6.
>
> -Eric Clayberg
> Sr. Vice President of Product Development
> Instantiations, Inc.
> http://www.instantiations.com
> http://www.swt-designer.com
>
> Author: "Eclipse: Building Commercial Quality Plug-ins"
> http://www.awprofessional.com/title/0321228472
>
|
|
|
Powered by
FUDForum. Page generated in 0.07813 seconds