[OmniOS-discuss] java can't find libjli.so on OmniOS v11 r151008 -- workaround
Geoff Nordli
geoffn at gnaa.net
Thu Feb 6 00:00:18 UTC 2014
I know very little about Java, so not sure exactly if there are more
things that need to get done in order to fix it, but here is a workaround.
I installed the package: pkg install java
pkg info java
Name: runtime/java
Summary: Open-source implementation of the seventh edition of
the Java SE Platform
State: Installed
Publisher: omnios
Version: 0.5.11 (jdk7u21-b30)
Build Release: 5.11
Branch: 0.151008
Packaging Date: 4 December, 2013 08:10:13 PM
Size: 105.29 MB
FMRI:
pkg://omnios/runtime/java@0.5.11,5.11-0.151008:20131204T201013Z
For whatever reason java couldn't find a library.
/usr/bin/java -v
ld.so.1: java: fatal: libjli.so: open failed: No such file or directory
Killed
ldd /usr/bin/java
libthread.so.1 => /lib/libthread.so.1
libjli.so => (file not found)
libdl.so.1 => /lib/libdl.so.1
libc.so.1 => /lib/libc.so.1
libm.so.2 => /lib/libm.so.2
So I ended up doing:
cd /usr/lib/
ln -s /usr/java/jre/lib/i386/jli/libjli.so
and we are good......
/usr/bin/java -version
openjdk version "1.7.0_21"
OpenJDK Runtime Environment (build 1.7.0_21-b30)
OpenJDK Server VM (build 24.60-b03, mixed mode)
Geoff
More information about the OmniOS-discuss
mailing list