FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Redhat > Fedora Development Java

 
 
LinkBack Thread Tools
 
Old 01-10-2008, 09:29 PM
Rich Megginson
 
Default Where does icedtea set java.library.path?

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.


--
fedora-devel-java-list mailing list
fedora-devel-java-list@redhat.com
https://www.redhat.com/mailman/listinfo/fedora-devel-java-list
 
Old 01-11-2008, 03:24 PM
Lillian Angel
 
Default Where does icedtea set java.library.path?

Rich Megginson wrote:
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.


Thanks for pointing this out. I am working on a fix.

Lillian

--
fedora-devel-java-list mailing list
fedora-devel-java-list@redhat.com
https://www.redhat.com/mailman/listinfo/fedora-devel-java-list
 
Old 01-11-2008, 03:36 PM
Rich Megginson
 
Default Where does icedtea set java.library.path?

Lillian Angel wrote:



Rich Megginson wrote:
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.


Thanks for pointing this out. I am working on a fix.

see also http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6312057


Lillian


--
fedora-devel-java-list mailing list
fedora-devel-java-list@redhat.com
https://www.redhat.com/mailman/listinfo/fedora-devel-java-list
 
Old 01-11-2008, 04:03 PM
Lillian Angel
 
Default Where does icedtea set java.library.path?

Hi,

Lillian Angel wrote:



Rich Megginson wrote:
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.


Thanks for pointing this out. I am working on a fix.


I committed a fix to the icedtea repository. It'll be in rawhide when
the next release goes out.



Lillian

--
fedora-devel-java-list mailing list
fedora-devel-java-list@redhat.com
https://www.redhat.com/mailman/listinfo/fedora-devel-java-list
 

Thread Tools




All times are GMT. The time now is 03:32 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org