classpath
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

gnu.classpath.boot.library.path support in Runtime.java


From: Robert Schuster
Subject: gnu.classpath.boot.library.path support in Runtime.java
Date: Tue, 15 Mar 2005 02:43:02 +0100
User-agent: Mozilla/5.0 (X11; U; Linux i686; de-AT; rv:1.7.5) Gecko/20050107

Hello,
as discussed on IRC GNU Classpath I introduced a system property named gnu.classpath.boot.library.path which contains a path of directories where Classpath's native libraries are located.

It is optional for a runtime to support. Actually it depends on the VM's ability to run a non-default Classpath installation. By default the property is not set and so it won't cause any trouble. The proprietary VMs have a similar property but that is not a matter for us because the feature is not specified.

On IRC I was told that it is the VM's task to find a native library. However by looking in java.lang.Runtime I found a piece of code that iterates through a String array of directory names. On each iteration it prepends a directory name to a library name and tries to load it. This array is created in the constructor of Runtime by evaluating the java.library.path property. This algorithm is only used if a VM was not able to load a native library via VMRuntime.nativeLoad().

That means we support finding a native library through the VM itself and through Classpath. For JamVM the latter one is used.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]