Skip to main content



      Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » no swt-pi-gtk-3064 in java.library.path
no swt-pi-gtk-3064 in java.library.path [message #456355] Wed, 01 June 2005 04:51 Go to next message
Eclipse UserFriend
Originally posted by: kjwilson.shaw.ca

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
Re: no swt-pi-gtk-3064 in java.library.path [message #456356 is a reply to message #456355] Wed, 01 June 2005 05:22 Go to previous messageGo to next message
Eclipse UserFriend
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
Re: no swt-pi-gtk-3064 in java.library.path [message #456359 is a reply to message #456356] Wed, 01 June 2005 05:43 Go to previous message
Eclipse UserFriend
Originally posted by: kjwilson.shaw.ca

exquisitus wrote:
> 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

Thanks for the quick response. Your answer was indeed correct. I had
something a little subtler happening over and above that and found a
case issue in the path I was providing. Once I fixed that as well it
ran fine. I'm going to archive this post though so I have a reference
for the first time I try to run an app outside of Eclipse.

Ken
Previous Topic:Totals row for table
Next Topic:Please Help: Detecting swt-composite via mouse-event
Goto Forum:
  


Current Time: Wed Nov 05 11:11:53 EST 2025

Powered by FUDForum. Page generated in 0.04296 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top