I've just downloaded schemaspy and it is working perfectly apart from one thing. I always have to specify the path to the mysql connector with the -dp option.
If I don't specify it, I get this error:
java.lang.ClassNotFoundException: com.mysql.jdbc.Driver
Failed to load driver 'com.mysql.jdbc.Driver'
This entry doesn't point to a valid file/directory: [/mysql/mysql-connector-java-5.1.6- bin.jar]
The path (symlink to /usr/share/java/mysql-connector-java-5.1.28.jar
or whatever version you have) is:
/usr/share/java/mysql-connector-java.jar
And it is on the $CLASSPATH.
Also, don't expect -p
prompt for a password.
I do it this way.. Added this as parameter: -dp C:\apache-tomcat-6.0.37\lib\mysql-connector-java-5.1.10.jar kept my mysql driver in destined folder.
Worked for me.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With