3. Java for Web Development for PHP Developers – a rant
3rd day it was data access through ODBC. Data access concept was nothing difficult to understand but it has introduced few new classes and it was something to understand. Using MySQL with Java was most difficult and I could not set it up. It requires Connector J to connect to MySQL from Java. I tried to install but it is giving error like:
Exception in thread "main" java.lang.NoClassDefFoundError: org/aspectj/lang/Signature
at java.lang.Class.forName0(Native Method)
Huh! I need to solve this. Connecting to MS SQL Sever is not just enough for me through DNS. I need MySQL.
Finally I have solved the JDBC connection problem. Just put this file mysql-connector-java-5.1.13-bin.jar (version is 5.1.13) in \Java\jre6\lib\ext and do not put the debug's folder jre file. That was creating trouble.
3rd Day is over!