diff -r 4e05b6eabbc5 -r 8eba262bd8cd launcher/http/src/main/java/org/apidesign/bck2brwsr/launcher/CompileCP.java --- a/launcher/http/src/main/java/org/apidesign/bck2brwsr/launcher/CompileCP.java Tue May 27 15:22:04 2014 +0200 +++ b/launcher/http/src/main/java/org/apidesign/bck2brwsr/launcher/CompileCP.java Tue Jun 03 16:05:21 2014 +0200 @@ -65,10 +65,17 @@ } catch (URISyntaxException ex) { throw new IOException(ex); } - for (String s : System.getProperty("java.class.path").split(File.pathSeparator)) { - if (!f.getPath().startsWith(s)) { - continue; + String s = f.isDirectory() ? f.getPath() : null; + + for (String candidate : System.getProperty("java.class.path").split(File.pathSeparator)) { + if (s != null) { + break; } + if (f.getPath().startsWith(candidate)) { + s = candidate; + } + } + if (s != null) { File root = new File(s); List arr = new ArrayList<>(); List classes = new ArrayList<>();