1.1 --- a/launcher/http/src/main/java/org/apidesign/bck2brwsr/launcher/CompileCP.java Tue Apr 29 14:28:52 2014 +0200
1.2 +++ b/launcher/http/src/main/java/org/apidesign/bck2brwsr/launcher/CompileCP.java Tue Apr 29 14:59:40 2014 +0200
1.3 @@ -29,6 +29,8 @@
1.4 import java.util.List;
1.5 import java.util.jar.JarEntry;
1.6 import java.util.jar.JarFile;
1.7 +import java.util.logging.Level;
1.8 +import java.util.logging.Logger;
1.9 import java.util.zip.ZipEntry;
1.10 import org.apidesign.bck2brwsr.launcher.BaseHTTPLauncher.Res;
1.11 import org.apidesign.vm4brwsr.Bck2Brwsr;
1.12 @@ -67,8 +69,13 @@
1.13 }
1.14 }
1.15
1.16 - static String compileFromClassPath(URL u, final Res r) throws IOException, URISyntaxException {
1.17 - File f = new File(u.toURI());
1.18 + static String compileFromClassPath(URL u, final Res r) throws IOException {
1.19 + File f;
1.20 + try {
1.21 + f = new File(u.toURI());
1.22 + } catch (URISyntaxException ex) {
1.23 + throw new IOException(ex);
1.24 + }
1.25 for (String s : System.getProperty("java.class.path").split(File.pathSeparator)) {
1.26 if (!f.getPath().startsWith(s)) {
1.27 continue;