WebSphere Application Server & Liberty

WebSphere Application Server & Liberty

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.

 View Only
Expand all | Collapse all

Could not load SWT library

  • 1.  Could not load SWT library

    Posted Thu March 04, 2021 12:24 AM

    Hi,

    I have installed Installation Manager on a RHEL 8 instance. I am getting the following error.

    Please assist.

    [root]# ./IBMIM

    IBMIM: Cannot open display:

    00:00.27 ERROR [main] com.ibm.cic.agent.internal.ui.AgentUI reportStatus

    Could not load SWT library. Reasons:

    /root/IBM/InstallationManager/eclipse/configuration/org.eclipse.osgi/526/0/.cp/libswt-pi-gtk-4630.so (libXtst.so.6: cannot open shared object file: No such file or directory)

    swt-pi-gtk (Not found in java.library.path)

    /root/.swt/lib/linux/x86_64/libswt-pi-gtk-4630.so (libXtst.so.6: cannot open shared object file: No such file or directory)

    /root/.swt/lib/linux/x86_64/libswt-pi-gtk.so (/root/.swt/lib/linux/x86_64/liblibswt-pi-gtk.so.so: cannot open shared object file: No such file or directory)

    java.lang.UnsatisfiedLinkError: Could not load SWT library. Reasons:

    /root/IBM/InstallationManager/eclipse/configuration/org.eclipse.osgi/526/0/.cp/libswt-pi-gtk-4630.so (libXtst.so.6: cannot open shared object file: No such file or directory)

    swt-pi-gtk (Not found in java.library.path)

    /root/.swt/lib/linux/x86_64/libswt-pi-gtk-4630.so (libXtst.so.6: cannot open shared object file: No such file or directory)

    /root/.swt/lib/linux/x86_64/libswt-pi-gtk.so (/root/.swt/lib/linux/x86_64/liblibswt-pi-gtk.so.so: cannot open shared object file: No such file or directory)

    at org.eclipse.swt.internal.Library.loadLibrary(Library.java:327)

    at org.eclipse.swt.internal.Library.loadLibrary(Library.java:236)

    at org.eclipse.swt.internal.gtk.OS.<clinit>(OS.java:26)

    at org.eclipse.swt.internal.Converter.wcsToMbcs(Converter.java:63)

    ...

    The displayed failed to initialize. See the log /root/IBM/InstallationManager/eclipse/configuration/1614817003343.log for details.



    #Support
    #SupportMigration
    #WebSphereHTTPServer


  • 2.  RE: Could not load SWT library

    Posted Fri March 05, 2021 05:11 AM

    Hi aaron,

    You need to install gtk package.

    Regards,



    #Support
    #SupportMigration
    #WebSphereHTTPServer