java.lang.NoClassDefFoundError: org/aspectj/lang/Signature
Posted by: taz devil
Date: April 18, 2005 02:51AM

Im using:
-Mysql v3.23.38
-Apache Server v1.3
-Jsdk v1.4.2
-Netbeans v4.0
-Connector/j v3.1.8

Im trying to connect to Mysql dbase with the ff code:

============================================================
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;

public class LoadDriver {

public static void main(String[] args) {
try { Class.forName("com.mysql.jdbc.Driver").newInstance(); }
catch (Exception ex) { System.out.println("My Exception: " + ex.getMessage()); }
try {
Connection conn = DriverManager.getConnection("jdbc:mysql://localhost/test?user=''&password=''");
} catch (SQLException ex) {
// handle any errors
System.out.println("SQLException: " + ex.getMessage());
System.out.println("SQLState: " + ex.getSQLState());
System.out.println("VendorError: " + ex.getErrorCode());
}
}
}
============================================================

but got the ff runtime error:

============================================================
run-single:
java.lang.NoClassDefFoundError: org/aspectj/lang/Signature
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:141)
at dbaseconnect.LoadDriver.main(LoadDriver.java:13)
Exception in thread "main"
Java Result: 1
============================================================

i know ive include the connector/j in the classpath but i still cant figure out whats wrong!
pls!pls! help??!?!?!

tnx in advance!..

Options: ReplyQuote


Subject
Written By
Posted
java.lang.NoClassDefFoundError: org/aspectj/lang/Signature
April 18, 2005 02:51AM
March 14, 2007 04:02AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.