Report the classpath when InterruptedException cannot be found
authorJaroslav Tulach <jaroslav.tulach@apidesign.org>
Tue, 10 Mar 2015 20:08:37 +0100
changeset 1806c186877cc85a
parent 1805 18ae4fbcfb87
child 1807 6083160bfccf
Report the classpath when InterruptedException cannot be found
launcher/http/src/main/java/org/apidesign/bck2brwsr/launcher/CompileCP.java
     1.1 --- a/launcher/http/src/main/java/org/apidesign/bck2brwsr/launcher/CompileCP.java	Tue Mar 10 19:55:52 2015 +0100
     1.2 +++ b/launcher/http/src/main/java/org/apidesign/bck2brwsr/launcher/CompileCP.java	Tue Mar 10 20:08:37 2015 +0100
     1.3 @@ -92,6 +92,9 @@
     1.4          final Bck2Brwsr rt;
     1.5          try {
     1.6              URL u = r.get(InterruptedException.class.getName().replace('.', '/') + ".class", 0);
     1.7 +            if (u == null) {
     1.8 +                throw new IOException("Cannot find InterruptedException class on classpath: " + System.getProperty("java.class.path"));
     1.9 +            }
    1.10              JarURLConnection juc = (JarURLConnection)u.openConnection();
    1.11              rt = Bck2BrwsrJars.configureFrom(null, new File(juc.getJarFileURL().toURI()));
    1.12          } catch (URISyntaxException ex) {