[fedora-java] Where does icedtea set java.library.path?

Rich Megginson rmeggins at redhat.com
Thu Jan 10 22:29:15 UTC 2008


I'm having a problem with Java IcedTea on F-8 x86_64.  The 
java.library.path has /usr/lib and not /usr/lib64.  This causes problems 
because my java app can't find the JNI libs and dependencies it needs.

public class PropTest {
    public static void main(String[] args) {
        String val = System.getProperty("java.library.path");
        System.out.println("java.library.path=" + val);
    }
}

java.library.path=/usr/lib/jvm/java-1.7.0-icedtea-1.7.0.0.x86_64/jre/lib/amd64/server:/usr/lib/jvm/java-1.7.0-icedtea-1.7.0.0.x86_64/jre/lib/amd64:/usr/lib/jvm/java-1.7.0-icedtea-1.7.0.0.x86_64/jre/../lib/amd64:/usr/java/packages/lib/amd64:/lib:/usr/lib

If I set -Djava.library.path= it still cannot find the libraries.  I 
thought it would use the default system ld lib path.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3245 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://listman.redhat.com/archives/fedora-devel-java-list/attachments/20080110/61eb0136/attachment.bin>


More information about the fedora-devel-java-list mailing list