Hi Everyone, I am using MySQL as a database and am trying to run a sample program to fetch and display data from a table... I am getting 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(Class.java:164) at com.sitepoint.ToDoList.<init>(ToDoList.java:12) at com.sitepoint.ToDoTest.main(ToDoTest.java:6)
Is this a classpath problem. I am using eclipse ide to run the project. Also i am using the following driver: mysql-connector-java-3.1.13-bin-g.jar
Here is the driver and connection string i am using: "com.mysql.jdbc.Driver", "jdbc:IJDB://localhost/TODO?user=db2admin&password=db2admin"
Please help me resolve.
Also when i try to run it from command i get the following: The java class could not be loaded. java.lang.UnsupportedClassVersionError:
Thanks & Regards, Abhi.
"I may not have gone where I intended to go, but I think I have ended up where I needed to be"<br /> <br />"He felt that his whole life was some kind of dream and he sometimes wondered whose it was and whether they were enjoying it"<br /> <br />--by Douglas Adams<br /> <br />[SCJP - 96%, SCWCD - 88%, SCBCD - May 2008]