URL[] () { String classpath = <error descr="Cannot resolve symbol 'SystemProperties'">SystemProperties</error>.getProperty("java.class.path", "."); <error descr="Cannot resolve symbol 'StringTokenizer'">StringTokenizer</error> tok = new <error descr="Cannot resolve symbol 'StringTokenizer'">StringTokenizer</error>(classpath, File.pathSeparator, true); ArrayList list = new ArrayList(); while (tok.<error descr="Cannot resolve method 'hasMoreTokens()'">hasMoreTokens</error>()) { String s = tok.<error descr="Cannot resolve method 'nextToken()'">nextToken</error>(); if (s.equals(File.pathSeparator)) addFileURL(list, "."); else { addFileURL(list, s); if (tok.<error descr="Cannot resolve method 'hasMoreTokens()'">hasMoreTokens</error>()) { // Skip the separator. tok.<error descr="Cannot resolve method 'nextToken()'">nextToken</error>(); // If the classpath ended with a separator, // append the current directory. if (!tok.<error descr="Cannot resolve method 'hasMoreTokens()'">hasMoreTokens</error>()) addFileURL(list, "."); } } } URL[] urls = new URL[list.size()]; list.toArray(urls); return urls; }