URL[] () { String classpath = SystemProperties.getProperty("java.ext.dirs", ""); StringTokenizer tok = new StringTokenizer(classpath, File.pathSeparator); ArrayList list = new ArrayList(); while (tok.hasMoreTokens()) { try { File f = new File(tok.nextToken()); File[] files = f.listFiles(); if (files != null) for (int i = 0; i < files.length; i++) list.add(files[i].toURL()); } catch(Exception x) { } } URL[] urls = new URL[list.size()]; list.toArray(urls); return urls; }