Sorry if the problem is stupid, for I have to idea how the Java development goes…
The target is a CentOS 6.10 x64 machine.
I’ve managed to install HDF5 1.10.5 and HDF 4.2.14 on the machine, both with Java enabled, into /usr/lib64.
The Java SDK is of version 11.0.3+12-LTS from Oracle.
The ANT is binary downloaded from Apache, of version 1.10.5.
I edited the build.properties and change these values:
hdf.lib.dir = /usr/lib64
hdf5.lib.dir = /usr/lib64
hdf5.plugin.dir = /usr/lib64/plugin
to reflect the HDF/HDF5 libdir.
The building completes with the error:
[java] Exception in thread “main” java.lang.UnsatisfiedLinkError: Could not load SWT library. Reasons:
[java] no swt-pi4-gtk-4922r32 in java.library.path: [/usr/lib64]
[java] no swt-pi4-gtk in java.library.path: [/usr/lib64]
[java] Can’t load library: /root/.swt/lib/linux/x86_64/libswt-pi4-gtk-4922r32.so
[java] Can’t load library: /root/.swt/lib/linux/x86_64/libswt-pi4-gtk.so
The HDFView seems to have the SWT included in the source, but I don’t know what’s the libswt-pi4-gtk.so is.
From what I’ve read, it’s the SWT interface (JNI?) to the system graphics library.
I tried to download the SWT source (4.1.0) from Eclipse, but it looks like it’s for GTK 3+, and the CentOS 6 did not provide GTK3 packages in its repository.
The ANT can make the package, but the HDFView installed with the package can’t run, with the missing libswt-pi4-gtk.so error.
I think I’m close…