[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Newsgroup Home]
|
[news.eclipse.platform.swt] Re: Newbie question
|
hi
i think you have to specify
the path of your swt "dll" in the 'java.library.path' VM Argument
when your launch your program
on eclipse/win32 it's like
-Djava.library.path=c:/eclipse/plugins/org.eclipse.swt.win32_2.1.0/os/win32/
x86
where x86 is the folder of the 'swt-pi-gtk-3007' equivalent file
hope dis will be helpfull
"Nilo Roberto Da Cruz Paim" <npaim@xxxxxxxxxxx> a écrit dans le message de
news: becv72$msg$1@xxxxxxxxxxxxxx
> Hi all,
>
> Sorry me if'm off topic, but...
>
> I'm trying to use swt in a litle tests. I've imported swt.jar to my
project,
> but when I trie to run I get the following messages:
>
> Exception in thread "main" java.lang.UnsatisfiedLinkError: no
> swt-pi-gtk-3007 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:108)
> at org.eclipse.swt.internal.gtk.OS.<clinit>(OS.java:18)
> at org.eclipse.swt.widgets.Display.createDisplay(Display.java:482)
> at org.eclipse.swt.widgets.Display.create(Display.java:469)
> at org.eclipse.swt.graphics.Device.<init>(Device.java:111)
> at org.eclipse.swt.widgets.Display.<init>(Display.java:303)
> at org.eclipse.swt.widgets.Display.<init>(Display.java:299)
> at jcf.HelloSWT.main(HelloSWT.java:11)
>
> I could not find the reason for the error browsing the docs.
>
> Any help will be appreciated.
>
> TIA
>
> Nilo