KNIME 4.2 swt library loading error on CentOS 6.9 Final

I could not start KNIME 4.2.0 on my CentOS 6.9 (Final). I am getting the below error. Do you have any suggestion?

=======================================================================
!SESSION 2020-06-29 10:18:41.065 -----------------------------------------------
eclipse.buildId=unknown
java.version=1.8.0_252
java.vendor=AdoptOpenJDK
BootLoader constants: OS=linux, ARCH=x86_64, WS=gtk, NL=en_US
Command-line arguments: -os linux -ws gtk -arch x86_64

!ENTRY org.eclipse.osgi 4 0 2020-06-29 10:18:53.081
!MESSAGE Application error
!STACK 1
java.lang.UnsatisfiedLinkError: Could not load SWT library. Reasons:
no swt-pi4-gtk-4932r18 in java.library.path
no swt-pi4-gtk in java.library.path
Can’t load library: /home/kuppuraj/.swt/lib/linux/x86_64/libswt-pi4-gtk-4932r18.so
Can’t load library: /home/kuppuraj/.swt/lib/linux/x86_64/libswt-pi4-gtk.so

at org.eclipse.swt.internal.Library.loadLibrary(Library.java:342)
at org.eclipse.swt.internal.Library.loadLibrary(Library.java:256)
at org.eclipse.swt.internal.gtk.OS.<clinit>(OS.java:90)
at org.eclipse.swt.internal.Converter.wcsToMbcs(Converter.java:209)
at org.eclipse.swt.internal.Converter.wcsToMbcs(Converter.java:155)
at org.eclipse.swt.widgets.Display.<clinit>(Display.java:164)
at org.eclipse.ui.internal.Workbench.createDisplay(Workbench.java:760)
at org.eclipse.ui.PlatformUI.createDisplay(PlatformUI.java:166)
at org.knime.product.rcp.KNIMEApplication.createDisplay(KNIMEApplication.java:215)
at org.knime.product.rcp.KNIMEApplication.start(KNIMEApplication.java:107)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:203)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:137)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:107)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:401)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:255)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:657)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:594)
at org.eclipse.equinox.launcher.Main.run(Main.java:1447)
at org.eclipse.equinox.launcher.Main.main(Main.java:1420)

=======================================================================

Thanks
Ravikiran

1 Like

Hi Ravikiran,

Could you please follow the instructions in this article, and see if the files listed here:

Can’t load library: /home/kuppuraj/.swt/lib/linux/x86_64/libswt-pi4-gtk-4932r18.so
Can’t load library: /home/kuppuraj/.swt/lib/linux/x86_64/libswt-pi4-gtk.so

are present and if there are any other files in those folders? If so, follow the instructions to gather the correct versions outlined:

I know this may be a different version, but the steps outlined should be similar. Let me know if this helps.

Thanks,
Zack

Yes, I do have the just the below 2 files under /home/kuppuraj/.swt/lib/linux/x86_64/
libswt-pi3-gtk-4763.so
libswt-pi3-gtk-4932r18.so

I am now trying to follow the steps in the article you have sent. But for KNIME 4.2, could you let me know what to be replaced?

Thanks for your help.
Ravikiran

Hi Ravikiran,

Please see this FAQ on how to install the correct swk/gtk, even though the documentation says 3.x, it should apply to your 4.2 version:

https://www.knime.com/faq#q6
Under Fedora/CentOS/RHEL install webkitgtk (yum install webkitgtk)

and if you are noticing slowness or other issues, you can attempt the fix outline here:

https://www.knime.com/faq#q32

Please let me know if these help resolve your issue.

Thanks,
Zack

Thanks. But can we install GTK3 on CentOS 6.9? Do you have any idea?
The blocking factor itself is my CentOS version which is 6.9.

Hi Ravikiran,

I have just foudn out that CentOS 6.9 is not compatible with GTK3 and there for will not work with Knime. Please update your version of CentOS got a compatible version if you would like Knime to work.

Thanks,
Zack

2 Likes

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.