This is because splitting an empty string produces a single empty string, which is a valid prefix for all classpath entries.