protected String[] getCompilerClassPath() { String[] userLibs = RuntimeProperties.getCompilationClasspaths(); String[] libNames = getJavaClassPath(); File[] sysLibs = getSystemLibs(); int req = 0; if (userLibs != null) { req += userLibs.length; } if (libNames != null) { req += libNames.length; } if (sysLibs != null) { req += sysLibs.length; } String[] cp = new String[req]; int j = 0; for (int i = 0; userLibs != null && i < userLibs.length; i++) { try { cp[j++] = new File(userLibs[i]).getCanonicalPath(); } catch (IOException e) { e.printStackTrace(); } } for (int i = 0; libNames != null && i < libNames.length; i++) { cp[j++] = libNames[i]; } for (int i = 0; sysLibs != null && i < sysLibs.length; i++) { try { cp[j++] = sysLibs[i].getCanonicalPath(); } catch (IOException e) { e.printStackTrace(); } } return cp; }