daily pastebin goal
48%
SHARE
TWEET

Untitled

a guest May 17th, 2018 114 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. public class App {
  2.     public static void main(String[] args) {
  3.         Guice.createInjector(new AbstractModule() {
  4.             @Override
  5.             protected void configure() {
  6.                 // just testing
  7.             }
  8.         });
  9.     }
  10. }
  11.    
  12. Exception in thread "main" java.lang.NoClassDefFoundError: [Lorg/aopalliance/intercept/MethodInterceptor;
  13.     at java.lang.Class.getDeclaredMethods0(Native Method)
  14.     at java.lang.Class.privateGetDeclaredMethods(Class.java:2427)
  15.     at java.lang.Class.getDeclaredMethods(Class.java:1791)
  16.     at com.google.inject.internal.ProviderMethodsModule.getProviderMethods(ProviderMethodsModule.java:78)
  17.     at com.google.inject.internal.ProviderMethodsModule.configure(ProviderMethodsModule.java:70)
  18.     at com.google.inject.spi.Elements$RecordingBinder.install(Elements.java:223)
  19.     at com.google.inject.spi.Elements$RecordingBinder.install(Elements.java:232)
  20.     at com.google.inject.spi.Elements.getElements(Elements.java:101)
  21.     at com.google.inject.InjectorShell$Builder.build(InjectorShell.java:135)
  22.     at com.google.inject.InjectorBuilder.build(InjectorBuilder.java:102)
  23.     at com.google.inject.Guice.createInjector(Guice.java:92)
  24.     at com.google.inject.Guice.createInjector(Guice.java:69)
  25.     at com.google.inject.Guice.createInjector(Guice.java:59)
  26.     at App.main(App.java:6)
  27. Caused by: java.lang.ClassNotFoundException: org.aopalliance.intercept.MethodInterceptor
  28.     at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
  29.     at java.security.AccessController.doPrivileged(Native Method)
  30.     at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
  31.     at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
  32.     at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
  33.     at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
  34.     at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
  35.     ... 14 more
  36.    
  37. windows: java -cp aopalliance.jar;guice-2.0.jar;other_jars.jar YourMainClass
  38. *nix:    java -cp aopalliance.jar:guice-2.0.jar:other_jars.jar YourMainClass
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top