Skip to Main Content

Java SE (Java Platform, Standard Edition)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

AspectJ Installation - NoClassDefFoundError with org/aspectj/lang/Signature

843804Sep 30 2005 — edited Oct 18 2005
I've created a program to test the JDBC MySQL Engine. When I compile it, everything works fine but when I try to run the program I get the following error:

Exception in thread "main" java.lang.NoClassDefFoundError: org/aspectj/lang/Signature
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Unknown Source)
at TestMySQL.main(TestMySQL.java:12)


The line 12 of TestMySQL.java is the following:
Class.forName("com.mysql.jdbc.Driver").newInstance();

I've also added the AspectJ .jar file location (which is the following: C:\Programmi\Java\jre1.5.0_04\lib\ext\aspectj-1.5.0M1.jar) to the CLASSPATH variable, but nothing worked.

How can I work around this problem??
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Nov 15 2005
Added on Sep 30 2005
2 comments
702 views