I want to use Java from mysql 5.1, then I got the problem of error: com.mysql.jdbc.driver < / P>
Run a Java program from the command prompt, by typing mysql-connector-java-5.1.13-bin.jar and putting it into the bin directory in mysql
Finding Your Answer
The libraries should not be in their Java directory in the MySQL bin directory.
You can try calling it:
java-cp / path / for / msac-connector-java-5.1.13-bin.jar MyPackage.MyProgram
I recommend that you group your jar dependencies under an adjacent lib folder and set it as your classpath. Keep the library in one place and make the software easy to distribute and run.
Comments
Post a Comment