public List getSystemClasspath() throws ConfigException {
if(!Boolean.getBoolean(com.sun.enterprise.server.PELaunch.USE_NEW_CLASSLOADER_PROPERTY)){
List classPath = new ArrayList();
// bean that represents the java configuration
JavaConfig jconfig = (JavaConfig) ConfigBeansFactory.
getConfigBeanByXPath(this.configContext,
ServerXPathHelper.XPATH_JAVACONFIG);
// add the class path prefix first
String prefix = jconfig.getClasspathPrefix();
if (prefix != null) {
StringTokenizer st = new StringTokenizer(prefix,File.pathSeparator);
while (st.hasMoreTokens()) {
classPath.add(st.nextToken());
}
}
// adds the server classpath to the list
String serverClasspath = jconfig.getServerClasspath();
if (serverClasspath != null) {
StringTokenizer st =
new StringTokenizer(serverClasspath,File.pathSeparator);
while (st.hasMoreTokens()) {
classPath.add(st.nextToken());
}
}
// adds the class path suffix to the list
String suffix = jconfig.getClasspathSuffix();
if (suffix != null) {
StringTokenizer st = new StringTokenizer(suffix,File.pathSeparator);
while (st.hasMoreTokens()) {
classPath.add(st.nextToken());
}