Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » moving from windows to linux
moving from windows to linux [message #442213] Sun, 29 August 2004 03:01 Go to next message
jim is currently offline jimFriend
Messages: 36
Registered: July 2009
Member
I recently wrote a small SWT application in eclipse on windows. I am
trying to get it to run on RedHat Linux 9 with version 3.0 of eclipse.
After changing my .classpath file to point to the where .jar files are
located in Linux it compiles correctly (my .classpath is located below for
reference) I get the following exception:

Exception in thread "main" java.lang.UnsatisfiedLinkError: no
swt-pi-gtk-3062 in java.library.path
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1517)
at java.lang.Runtime.loadLibrary0(Runtime.java:788)
at java.lang.System.loadLibrary(System.java:834)
at org.eclipse.swt.internal.Library.loadLibrary(Library.java:10 0)
at org.eclipse.swt.internal.gtk.OS.<clinit>(OS.java:19)
at org.eclipse.swt.internal.Converter.wcsToMbcs(Converter.java: 63)
at org.eclipse.swt.internal.Converter.wcsToMbcs(Converter.java: 54)
at org.eclipse.swt.widgets.Display.<clinit>(Display.java:118)
at org.eclipse.swt.widgets.Shell.<init>(Shell.java:232)
at org.eclipse.swt.widgets.Shell.<init>(Shell.java:313)
at org.eclipse.jface.window.Window.createShell(Window.java:393)
at org.eclipse.jface.window.Window.create(Window.java:347)
at org.eclipse.jface.window.Window.open(Window.java:637)
at com.jhb.naver.Naver.main(Naver.java:169)

It seems as if I have to set my LD_LIBRARY_PATH to point to the .so files
located within the various eclipse plugins, however I never saw this
mentioned, nor do I want to go through and hand link these files on my
system. Is there a cleaner solution? Thanks in advance.

jim



--- my classpath ---

<classpath>
<classpathentry kind="src" path=""/>
<classpathentry kind="con"
path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
<classpathentry kind="lib"
path="/usr/local/eclipse/plugins/org.eclipse.ui_3.0.0/ui.jar "/>
<classpathentry kind="lib"
path=" /usr/local/eclipse/plugins/org.eclipse.jface_3.0.0/jface.jar "/>
<classpathentry kind="lib"
path=" /usr/local/eclipse/plugins/org.eclipse.swt.gtk_3.0.0/ws/gtk/ swt.jar "/>
<classpathentry kind="lib"
path=" /usr/local/eclipse/plugins/org.eclipse.core.runtime_3.0.0/ru ntime.jar "/>
<classpathentry kind="lib"
path=" /usr/local/eclipse/plugins/org.eclipse.ui.workbench_3.0.0/wo rkbench.jar "/>
<classpathentry kind="lib"
path=" /usr/local/eclipse/plugins/org.eclipse.core.runtime.compatib ility_3.0.0/compatibility.jar "/>
<classpathentry kind="lib"
path=" /usr/local/eclipse/plugins/org.eclipse.osgi_3.0.0/resolver.j ar "/>
<classpathentry kind="lib"
path="/usr/local/eclipse/plugins/org.eclipse.osgi_3.0.0/core.jar "/>
<classpathentry kind="lib"
path=" /usr/local/eclipse/plugins/org.eclipse.osgi_3.0.0/defaultAda ptor.jar "/>
<classpathentry kind="lib"
path=" /usr/local/eclipse/plugins/org.eclipse.osgi_3.0.0/eclipseAda ptor.jar "/>
<classpathentry kind="lib"
path="/usr/local/eclipse/plugins/org.eclipse.osgi_3.0.0/osgi.jar "/>
<classpathentry kind="lib"
path=" /usr/local/eclipse/plugins/org.eclipse.osgi_3.0.0/console.ja r "/>
<classpathentry kind="lib"
path=" /usr/local/eclipse/plugins/org.eclipse.osgi.util_3.0.0/util. jar "/>
<classpathentry kind="lib"
path=" /usr/local/eclipse/plugins/org.eclipse.osgi.services_3.0.0/s ervices.jar "/>
<classpathentry kind="lib"
path=" /usr/local/eclipse/plugins/org.eclipse.swt.gtk_3.0.0/ws/gtk/ swt-mozilla.jar "/>
<classpathentry kind="lib"
path=" /usr/local/eclipse/plugins/org.eclipse.swt.gtk_3.0.0/ws/gtk/ swt-pi.jar "/>
<classpathentry kind="output" path=""/>
Re: moving from windows to linux [message #442233 is a reply to message #442213] Mon, 30 August 2004 15:11 Go to previous message
Veronika Irvine is currently offline Veronika IrvineFriend
Messages: 1272
Registered: July 2009
Senior Member
See:

http://dev.eclipse.org/viewcvs/index.cgi/%7Echeckout%7E/plat form-swt-home/faq.html#missingdll

"jim" <scientificb@gmail.com> wrote in message
news:cgrgtf$fgo$1@eclipse.org...
> I recently wrote a small SWT application in eclipse on windows. I am
> trying to get it to run on RedHat Linux 9 with version 3.0 of eclipse.
> After changing my .classpath file to point to the where .jar files are
> located in Linux it compiles correctly (my .classpath is located below for
> reference) I get the following exception:
>
> Exception in thread "main" java.lang.UnsatisfiedLinkError: no
> swt-pi-gtk-3062 in java.library.path
> at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1517)
> at java.lang.Runtime.loadLibrary0(Runtime.java:788)
> at java.lang.System.loadLibrary(System.java:834)
> at org.eclipse.swt.internal.Library.loadLibrary(Library.java:10 0)
> at org.eclipse.swt.internal.gtk.OS.<clinit>(OS.java:19)
> at org.eclipse.swt.internal.Converter.wcsToMbcs(Converter.java: 63)
> at org.eclipse.swt.internal.Converter.wcsToMbcs(Converter.java: 54)
> at org.eclipse.swt.widgets.Display.<clinit>(Display.java:118)
> at org.eclipse.swt.widgets.Shell.<init>(Shell.java:232)
> at org.eclipse.swt.widgets.Shell.<init>(Shell.java:313)
> at org.eclipse.jface.window.Window.createShell(Window.java:393)
> at org.eclipse.jface.window.Window.create(Window.java:347)
> at org.eclipse.jface.window.Window.open(Window.java:637)
> at com.jhb.naver.Naver.main(Naver.java:169)
>
> It seems as if I have to set my LD_LIBRARY_PATH to point to the .so files
> located within the various eclipse plugins, however I never saw this
> mentioned, nor do I want to go through and hand link these files on my
> system. Is there a cleaner solution? Thanks in advance.
>
> jim
>
>
>
> --- my classpath ---
>
> <classpath>
> <classpathentry kind="src" path=""/>
> <classpathentry kind="con"
> path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
> <classpathentry kind="lib"
> path="/usr/local/eclipse/plugins/org.eclipse.ui_3.0.0/ui.jar "/>
> <classpathentry kind="lib"
> path=" /usr/local/eclipse/plugins/org.eclipse.jface_3.0.0/jface.jar "/>
> <classpathentry kind="lib"
>
path=" /usr/local/eclipse/plugins/org.eclipse.swt.gtk_3.0.0/ws/gtk/ swt.jar "/>
> <classpathentry kind="lib"
>
path=" /usr/local/eclipse/plugins/org.eclipse.core.runtime_3.0.0/ru ntime.jar "
/>
> <classpathentry kind="lib"
>
path=" /usr/local/eclipse/plugins/org.eclipse.ui.workbench_3.0.0/wo rkbench.ja
r"/>
> <classpathentry kind="lib"
>
path=" /usr/local/eclipse/plugins/org.eclipse.core.runtime.compatib ility_3.0.
0/compatibility.jar"/>
> <classpathentry kind="lib"
> path=" /usr/local/eclipse/plugins/org.eclipse.osgi_3.0.0/resolver.j ar "/>
> <classpathentry kind="lib"
> path="/usr/local/eclipse/plugins/org.eclipse.osgi_3.0.0/core.jar "/>
> <classpathentry kind="lib"
>
path=" /usr/local/eclipse/plugins/org.eclipse.osgi_3.0.0/defaultAda ptor.jar "/
>
> <classpathentry kind="lib"
>
path=" /usr/local/eclipse/plugins/org.eclipse.osgi_3.0.0/eclipseAda ptor.jar "/
>
> <classpathentry kind="lib"
> path="/usr/local/eclipse/plugins/org.eclipse.osgi_3.0.0/osgi.jar "/>
> <classpathentry kind="lib"
> path=" /usr/local/eclipse/plugins/org.eclipse.osgi_3.0.0/console.ja r "/>
> <classpathentry kind="lib"
> path=" /usr/local/eclipse/plugins/org.eclipse.osgi.util_3.0.0/util. jar "/>
> <classpathentry kind="lib"
>
path=" /usr/local/eclipse/plugins/org.eclipse.osgi.services_3.0.0/s ervices.ja
r"/>
> <classpathentry kind="lib"
>
path=" /usr/local/eclipse/plugins/org.eclipse.swt.gtk_3.0.0/ws/gtk/ swt-mozill
a.jar"/>
> <classpathentry kind="lib"
>
path=" /usr/local/eclipse/plugins/org.eclipse.swt.gtk_3.0.0/ws/gtk/ swt-pi.jar
"/>
> <classpathentry kind="output" path=""/>
>
>
>
>
>
>
>
Previous Topic:Working with the "About dialog" of RCP
Next Topic:OLE, Variant and Excel
Goto Forum:
  


Current Time: Thu Apr 25 16:02:06 GMT 2024

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

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

Back to the top