Skip to main content

build82 sparcv9 libjli.so in subdirectory

2 replies [Last post]
masseyis
Offline
Joined: 2004-09-09

for some reason, only in the 64bit sparc version, libjli.so is in a jli subdirectory, so java won't run unless this is added to LD_LIBRARY_PATH

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
quatro_por_quatro
Offline
Joined: 2007-11-04

I have found the same problem in Ubuntu Gutsy, my solution has been simple, it that file is not in the path, link that from the main library path

ln -sf /usr/lib/jvm/java-6-sun-1.6.0.03/jre/lib/i386/jli/libjli.so /usr/lib/libjli.so

jek3
Offline
Joined: 2006-02-13

First, libjli.so is in a jli subdirectory on all UNIX platforms. There are subtle linking advantages to it. However, since jli is just private code sharing between the multiple instances of the launcher (java, javac, javah, ...) it should be of no interest to the end user. Anyway, its not just there on the 64bit sparc version.

As far as java not running:

1: java -version
java version "1.6.0-beta2"
Java(TM) SE Runtime Environment (build 1.6.0-beta2-b82)
Java HotSpot(TM) Client VM (build 1.6.0-beta2-b82, mixed mode, sharing)
2: java -d64 -version
java version "1.6.0-beta2"
Java(TM) SE Runtime Environment (build 1.6.0-beta2-b82)
Java HotSpot(TM) 64-Bit Server VM (build 1.6.0-beta2-b82, mixed mode)
3: cd /usr/jdk/jdk1.6*
4: find . -name "*jli*" -print
./jre/lib/sparc/jli
./jre/lib/sparc/jli/libjli.so
./jre/lib/sparcv9/jli
./jre/lib/sparcv9/jli/libjli.so
5:

This is without LD_LIBRARY_PATH set. The launcher knows where libjli.so is located and nobody else needs to know.

So masseyis, what specifically did you do to experience the failure you are reporting? I can't reproduce it.