URL[] () { String classpath = <error descr="Cannot resolve symbol 'SystemProperties'">SystemProperties</error>.getProperty("java.ext.dirs", ""); <error descr="Cannot resolve symbol 'StringTokenizer'">StringTokenizer</error> tok = new <error descr="Cannot resolve symbol 'StringTokenizer'">StringTokenizer</error>(classpath, File.pathSeparator); ArrayList list = new ArrayList(); while (tok.<error descr="Cannot resolve method 'hasMoreTokens()'">hasMoreTokens</error>()) { try { File f = new File(tok.<error descr="Cannot resolve method 'nextToken()'">nextToken</error>()); 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; }