Linux Install - No jre directory

I am trying to install KNIME on a 64-bit Linux machine. I downloaded the appropriate file from here. The problem is when I extract, I don’t see the jre directory that is shown in the how to install knime on linux tutorial. Screenshot of the extracted files below. Maybe something has changed since that video was uploaded? Anyway, when I run the knime executable, it fails to open. The log starts like this, so maybe (maybe not?) related to the jre. Not sure. Any thoughts?

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 2021-06-23 04:39:53.932
!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

image

hello @scapuzzi,

have you installed Java?

br,
Sven

2 Likes

Hi @sven-abx: I have not. My understanding was that java comes bundled with KNIME in the jre directory. Is that incorrect? If so, do you have any pointers about what I need to install? Thank you for your time.

SC

hi @scapuzzi,

which distribution do you use?

br,
sven

1 Like

I am working on AWS. Amazon Linux 2 AMI (HVM), SSD Volume Type - ami-0aeeebd8d2ab47354 (64-bit x86) / ami-0b683223eeade51eb (64-bit Arm)

solved my own issues with the following:

sudo yum install java-1.8.0-openjdk
sudo yum install gtk3
sudo yum install libgtk-x11
sudo yum install dbus-x11
sudo yum install xorg-x11-xauth

4 Likes

so installing java was the solution. :wink:

br,
sven

for sure. i was just operating under the assumption that knime came bundled with java and should have worked out of the box. But with google, some fine internet folks like yourself, and some Tylenol I got it done! Hopefully others benefit! Thanks, sven.

1 Like

Thanks for sharing the solution. KNIME does come with java pre-installed and installing java was very likely not the reason why it started to work.

One of the other packages you installed fixed it, likely gtk or libgtk-x11. This is also mentioned in the error that you pasted in your first message:

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

(SWT is the library used by KNIME to do rendering and GTK is the system rendering engine, which is used by SWT.)

Glad it works now!

3 Likes

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