[Debian-med-packaging] Bug#731778: Value for java.library.path

Felipe Sateler fsateler at gmail.com
Wed Dec 11 12:39:25 UTC 2013


On Tue, Dec 10, 2013 at 12:11 PM, Mathieu Malaterre <malat at debian.org> wrote:
> Hi,
>
>   Thanks for your report. Could you please give me the output on your
> system for:

Yes, the result is as follows:

% cat GetSystemProperty.java
import java.util.Properties;
import java.util.Enumeration;

public class GetSystemProperty {
  public static void main(String args[]) {
    if( args.length == 0 ) {
      Properties p = System.getProperties();
      Enumeration keys = p.keys();
      while (keys.hasMoreElements()) {
        String key = (String)keys.nextElement();
        String value = (String)p.get(key);
        System.out.println(key + " : " + value);
      }
    }
    else {
      for (String key: args) {
        System.out.println(System.getProperty( key ));
      }
    }
  }
}
% javac GetSystemProperty.java
% java GetSystemProperty java.library.path
/usr/java/packages/lib/amd64:/usr/lib/x86_64-linux-gnu/jni:/lib/x86_64-linux-gnu:/usr/lib/x86_64-linux-gnu:/usr/lib/jni:/lib:/usr/lib


FWIW,
% java -version
java version "1.7.0_25"
OpenJDK Runtime Environment (IcedTea 2.3.12) (7u25-2.3.12-4)
OpenJDK 64-Bit Server VM (build 23.7-b01, mixed mode)


-- 

Saludos,
Felipe Sateler



More information about the Debian-med-packaging mailing list