Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Exception in thread "main" java.lang.NoClassDefFoundError: org/aspectj/runtime/internal/AroundClosure
- Caused by: java.lang.ClassNotFoundException: org.aspectj.runtime.internal.AroundClosure
- URLClassLoader ucl = null;
- try {
- URL url = Utils.getURIFromPath(jarFilePath).toURL();
- URL[] urls = new URL[] { url };
- ucl = new URLClassLoader(urls);
- for (String tmp : classes) {
- String clazz = tmp.substring(0, tmp.indexOf(".class")).replaceAll("/", ".");
- try {
- ucl.loadClass(clazz);
- } catch (Exception e) {
- LOGGER.error(e.getMessage(), e);
- }
- }
- } catch (MalformedURLException e) {
- LOGGER.error(e.getMessage(), e);
- } finally {
- if (ucl != null) {
- try {
- ucl.close();
- } catch (IOException e) {
- LOGGER.error(e.getMessage(), e);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement