Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 321631 - java.lang.UnsatisfiedLinkError: Could not load SWT library.
Summary: java.lang.UnsatisfiedLinkError: Could not load SWT library.
Status: RESOLVED FIXED
Alias: None
Product: Community
Classification: Eclipse Foundation
Component: CI-Jenkins (show other bugs)
Version: unspecified   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: CI Admin Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-08-03 12:57 EDT by Martin Taal CLA
Modified: 2010-08-03 18:21 EDT (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Taal CLA 2010-08-03 12:57:21 EDT
Hi,
I am getting an unsatisfied link error on a SWT library (see stacktrace below). 
See here for the full log:
https://build.eclipse.org/hudson/job/emft-texo-nightly/200/consoleFull

Is there something I should configure differently?
https://build.eclipse.org/hudson/job/emft-texo-nightly/configure

  [java] Caused by: java.lang.UnsatisfiedLinkError: Could not load SWT library. Reasons: 
     [java] 	/opt/users/hudsonbuild/.hudson/jobs/emft-texo-nightly/workspace/build/test/gen-workspace/.metadata/.plugins/org.eclipse.pde.core/pde-junit/org.eclipse.osgi/bundles/197/1/.cp/libswt-pi-gtk-3650.so (libgtk-x11-2.0.so.0: cannot open shared object file: No such file or directory)
     [java] 	swt-pi-gtk (Not found in java.library.path)
     [java] 	/tmp/swtlib-32/libswt-pi-gtk-3650.so (libgtk-x11-2.0.so.0: cannot open shared object file: No such file or directory)
     [java] 	/tmp/swtlib-32/libswt-pi-gtk.so (/tmp/swtlib-32/liblibswt-pi-gtk.so.so: cannot open shared object file: No such file or directory)
     [java] 
     [java] 	at org.eclipse.swt.internal.Library.loadLibrary(Library.java:267)
     [java] 	at org.eclipse.swt.internal.Library.loadLibrary(Library.java:174)
     [java] 	at org.eclipse.swt.internal.gtk.OS.<clinit>(OS.java:22)
     [java] 	at java.lang.J9VMInternals.initializeImpl(Native Method)
     [java] 	at java.lang.J9VMInternals.initialize(J9VMInternals.java:200)
     [java] 	at org.eclipse.swt.internal.Converter.wcsToMbcs(Converter.java:63)
     [java] 	at org.eclipse.swt.internal.Converter.wcsToMbcs(Converter.java:54)
     [java] 	at org.eclipse.swt.widgets.Display.<clinit>(Display.java:132)
     [java] 	at java.lang.J9VMInternals.initializeImpl(Native Method)
     [java] 	at java.lang.J9VMInternals.initialize(J9VMInternals.java:200)
     [java] 	at org.eclipse.jface.preference.PreferenceConverter.<clinit>(PreferenceConverter.java:79)
     [java] 	at java.lang.J9VMInternals.initializeImpl(Native Method)
     [java] 	at java.lang.J9VMInternals.initialize(J9VMInternals.java:200)
     [java] 	at org.eclipse.jdt.ui.PreferenceConstants.initializeDefaultValues(PreferenceConstants.java:3709)
     [java] 	at org.eclipse.jdt.internal.ui.JavaUIPreferenceInitializer.initializeDefaultPreferences(JavaUIPreferenceInitializer.java:37)
     [java] 	at org.eclipse.core.internal.preferences.PreferenceServiceRegistryHelper$1.run(PreferenceServiceRegistryHelper.java:281)
     [java] 	at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
     [java] 	at org.eclipse.core.internal.preferences.PreferenceServiceRegistryHelper.runInitializer(PreferenceServiceRegistryHelper.java:284)
     [java] 	at org.eclipse.core.internal.preferences.PreferenceServiceRegistryHelper.applyRuntimeDefaults(PreferenceServiceRegistryHelper.java:130)
     [java] 	at org.eclipse.core.internal.preferences.PreferencesService.applyRuntimeDefaults(PreferencesService.java:369)
     [java] 	at org.eclipse.core.internal.preferences.DefaultPreferences.applyRuntimeDefaults(DefaultPreferences.java:166)
     [java] 	at org.eclipse.core.internal.preferences.DefaultPreferences.load(DefaultPreferences.java:237)
     [java] 	at org.eclipse.core.internal.preferences.EclipsePreferences.create(EclipsePreferences.java:307)
     [java] 	at org.eclipse.core.internal.preferences.EclipsePreferences.internalNode(EclipsePreferences.java:543)
     [java] 	at org.eclipse.core.internal.preferences.EclipsePreferences.node(EclipsePreferences.java:669)
     [java] 	at org.eclipse.core.internal.preferences.AbstractScope.getNode(AbstractScope.java:38)
     [java] 	at org.eclipse.core.runtime.preferences.DefaultScope.getNode(DefaultScope.java:67)
     [java] 	at org.eclipse.ui.preferences.ScopedPreferenceStore.getDefaultPreferences(ScopedPreferenceStore.java:250)
     [java] 	at org.eclipse.ui.preferences.ScopedPreferenceStore.getPreferenceNodes(ScopedPreferenceStore.java:285)
     [java] 	at org.eclipse.ui.preferences.ScopedPreferenceStore.internalGet(ScopedPreferenceStore.java:475)
     [java] 	at org.eclipse.ui.preferences.ScopedPreferenceStore.getBoolean(ScopedPreferenceStore.java:387)
     [java] 	at org.eclipse.jdt.internal.ui.preferences.MembersOrderPreferenceCache.install(MembersOrderPreferenceCache.java:61)
     [java] 	at org.eclipse.jdt.internal.ui.JavaPlugin.ensurePreferenceStoreBackwardsCompatibility(JavaPlugin.java:421)
     [java] 	... 101 more
Comment 1 Denis Roy CLA 2010-08-03 13:00:23 EDT
     [java]     /tmp/swtlib-32/libswt-pi-gtk-3650.so (libgtk-x11-2.0.so.0:
cannot open shared object file: No such file or directory)
     [java]     /tmp/swtlib-32/libswt-pi-gtk.so
(/tmp/swtlib-32/liblibswt-pi-gtk.so.so: cannot open shared object file: No such
file or directory)



Do you know why it's looking in /tmp for a shared lib?  Not the place I typically install them :)

cc'ing Andrew because I think he's talked about this error.
Comment 2 Denis Roy CLA 2010-08-03 13:02:59 EDT
gtk2-32bit-2.18.9-0.4.1 (and its dependencies) was not installed.  I have installed it -- does that change anything?  Would we need to restart anything for this?
Comment 3 Martin Taal CLA 2010-08-03 13:05:33 EDT
Wouw, you are extremely quick (thanks!). I have restarted the build to see if it helped.

gr. Martin
Comment 4 Denis Roy CLA 2010-08-03 13:09:25 EDT
Hurry up before the coffee wears off  :)
Comment 5 Martin Taal CLA 2010-08-03 13:33:19 EDT
It works now! The speed of light is nothing compared to this solution speed :-).

Thanks!

gr. Martin