Skip to content
Snippets Groups Projects
Commit f136a20d authored by Avi Kivity's avatar Avi Kivity
Browse files

runjar: handle Errors as well as Exceptions

Allows seeing UnsatisfiedLinkErrors while loading jars.
parent 9fd2fdb0
No related branches found
No related tags found
No related merge requests found
...@@ -20,9 +20,9 @@ public class RunJar { ...@@ -20,9 +20,9 @@ public class RunJar {
try { try {
main.invoke(null, new Object[] { args }); main.invoke(null, new Object[] { args });
} catch (InvocationTargetException ex) { } catch (InvocationTargetException ex) {
throw (Exception)ex.getCause(); throw ex.getCause();
} }
} catch (Exception ex) { } catch (Throwable ex) {
ex.printStackTrace(); ex.printStackTrace();
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment