Advertisement
Guest User

Untitled

a guest
Nov 23rd, 2014
157
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.84 KB | None | 0 0
  1. Exception in thread "main" java.lang.NoClassDefFoundError: org/aspectj/runtime/internal/AroundClosure
  2.  
  3. Caused by: java.lang.ClassNotFoundException: org.aspectj.runtime.internal.AroundClosure
  4.  
  5. URLClassLoader ucl = null;
  6. try {
  7. URL url = Utils.getURIFromPath(jarFilePath).toURL();
  8. URL[] urls = new URL[] { url };
  9. ucl = new URLClassLoader(urls);
  10. for (String tmp : classes) {
  11. String clazz = tmp.substring(0, tmp.indexOf(".class")).replaceAll("/", ".");
  12. try {
  13. ucl.loadClass(clazz);
  14. } catch (Exception e) {
  15. LOGGER.error(e.getMessage(), e);
  16. }
  17. }
  18. } catch (MalformedURLException e) {
  19. LOGGER.error(e.getMessage(), e);
  20. } finally {
  21. if (ucl != null) {
  22. try {
  23. ucl.close();
  24. } catch (IOException e) {
  25. LOGGER.error(e.getMessage(), e);
  26. }
  27. }
  28. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement