[OmniOS-discuss] java can't find libjli.so on OmniOS v11 r151008 -- workaround

Mayuresh Kathe mayuresh at kathe.in
Thu Feb 6 06:30:24 UTC 2014


hey, doesn't java come pre-installed with omnios-r151008j?
i just installed jdk and it didn't even touch java packages
for installation.

~mayuresh

On Wed, Feb 05, 2014 at 04:00:18PM -0800, Geoff Nordli wrote:
> 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
> 
> _______________________________________________
> OmniOS-discuss mailing list
> OmniOS-discuss at lists.omniti.com
> http://lists.omniti.com/mailman/listinfo/omnios-discuss


More information about the OmniOS-discuss mailing list