< prev index next >
src/java.base/share/classes/sun/misc/Launcher.java
Print this page
@@ -317,25 +317,11 @@
public URL[] run() {
String bootClassPath = System.getProperty("sun.boot.class.path");
if (bootClassPath == null)
return new URL[0];
// Skip empty path in boot class path i.e. not default to use CWD
- File[] classPath = getClassPath(bootClassPath, false);
- int len = classPath.length;
- Set<File> seenDirs = new HashSet<File>();
- for (int i = 0; i < len; i++) {
- File curEntry = classPath[i];
- // Negative test used to properly handle
- // nonexistent jars on boot class path
- if (!curEntry.isDirectory()) {
- curEntry = curEntry.getParentFile();
- }
- if (curEntry != null && seenDirs.add(curEntry)) {
- MetaIndex.registerDirectory(curEntry);
- }
- }
- return pathToURLs(classPath);
+ return pathToURLs(getClassPath(bootClassPath, false));
}
}
);
bcp = new URLClassPath(urls, factory);
}
< prev index next >