Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » AJDT » ClassNotFoundException
ClassNotFoundException [message #596901] Fri, 06 June 2008 20:19
No real name is currently offline No real name
Messages: 19
Registered: July 2009
Junior Member
I created a very basic test case that calls one of our methods. I do not
have any aspects. If I execute it with AspectJ enabled on the project, I
get the stacktrace below. If I turn off AspectJ Capability then it runs
just fine. I looked in the output directory and the class does exist.

There are some compile errors in the project but that shouldn't affect
running the code because it works when AspectJ is turned off.

Any ideas how to fix this? Thanks.


Exception in thread "main" java.lang.NoClassDefFoundError: my.DepClass
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:621)
at java.security.SecureClassLoader.defineClass(SecureClassLoade r.java:124)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
at java.net.URLClassLoader.access$000(URLClassLoader.java:56)
at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:289 )
at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320 )
at MyClass.main(ModelChangeTest.java:23)
Caused by: java.lang.ClassNotFoundException: my.DepClass
at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:289 )
at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320 )
... 13 more
Previous Topic:ClassNotFoundException
Next Topic:AspectJ and 3rd party library
Goto Forum:
  


Current Time: Tue Jul 29 11:05:02 EDT 2014

Powered by FUDForum. Page generated in 0.01801 seconds