Example usage for org.apache.commons.lang SystemUtils JAVA_EXT_DIRS

List of usage examples for org.apache.commons.lang SystemUtils JAVA_EXT_DIRS

Introduction

In this page you can find the example usage for org.apache.commons.lang SystemUtils JAVA_EXT_DIRS.

Prototype

String JAVA_EXT_DIRS

To view the source code for org.apache.commons.lang SystemUtils JAVA_EXT_DIRS.

Click Source Link

Document

The java.ext.dirs System Property.

Usage

From source file:SystemUtilsTrial.java

public static void main(String[] args) {
    System.out.println("1) FILE_SEPARATOR =" + SystemUtils.FILE_SEPARATOR);
    System.out.println("2) JAVA_EXT_DIRS =" + SystemUtils.JAVA_EXT_DIRS);
    System.out.println("3) JAVA_HOME =" + SystemUtils.JAVA_HOME);
    System.out.println("4) Is 1.3 + =" + SystemUtils.isJavaVersionAtLeast(1.3f));
    System.out.println("5) JAVA_EXT_DIRS =" + SystemUtils.JAVA_EXT_DIRS);
    System.out.println("6) JAVA_VENDOR =" + SystemUtils.JAVA_VENDOR);
    System.out.println("7) OS_NAME =" + SystemUtils.OS_NAME);
}

From source file:org.apache.cocoon.components.language.programming.java.JavaLanguage.java

public void initialize() throws Exception {

    // Initialize the classpath
    String systemBootClasspath = System.getProperty("sun.boot.class.path");
    String systemClasspath = SystemUtils.JAVA_CLASS_PATH;
    String systemExtDirs = SystemUtils.JAVA_EXT_DIRS;
    String systemExtClasspath = null;

    try {/*from ww  w . j  a  v a 2 s  .c  o  m*/
        systemExtClasspath = expandDirs(systemExtDirs);
    } catch (Exception e) {
        getLogger().warn("Could not expand Directory:" + systemExtDirs, e);
    }

    this.classpath = ((super.classpath != null) ? File.pathSeparator + super.classpath : "")
            + ((systemBootClasspath != null) ? File.pathSeparator + systemBootClasspath : "")
            + ((systemClasspath != null) ? File.pathSeparator + systemClasspath : "")
            + ((systemExtClasspath != null) ? File.pathSeparator + systemExtClasspath : "");
}