| [news.eclipse.platform.swt] Re: no swt-pi-gtk-3064 in java.library.path |
Ken Wilson wrote:
I am new to Eclipse. I am working on the base SWT tutorial for Eclipse 3.0.2. The OS is Red Hat Enterprise Linux 3 and I have the Java 1.5.0 SDK installed (J2SE).
I am getting an UnsatisfiedLinkError with the subject description. I think I have everything set up right but can't be sure. I do have the following file on my system if this is what I need. I don't know how to tell Eclipse about it though if this is indeed the file.
libswt-pi-gtk-3064.so
This file currently resides in the Eclipse root installation.
Thanks in advance for any help/insight.
Ken Wilson
If you are running the program from the command prompt, you need something like
% java -Djava.library.path=/opt/eclipse/plugins/org.eclipse.swt.gtk_3.0.2/os/linux/x86 MyClass
If you are running the program inside Eclipse, you do this by using "Run|Run..." to
bring up the run configurations, and in the configuration for your program, click on
the "(x)= Arguments" tab, and inside the "VM arguments" box include something like
-Djava.library.path=/opt/eclipse/plugins/org.eclipse.swt.gtk_3.0.2/os/linux/x86
(substitute in whatever the path is for the appropriate version of the shared
object you need).
nick
Ken