1, Mysql-connector-java-5.1.7-bin.jar Add location: Under the/jre/lib/ext/directory under the JDK root directory;
2.Configure environment Variables for Linux: (remember source. bash_profile)
. Modify the/etc/profile file (global All users)
vi this file/etc/profile
at the end of the profile file, add:
Export java_home=/usr/java/jdk1.6.0_20
Export path= $JAVA _home/bin: $PATH
export classpath=.: $JAVA _home/lib/dt.jar: $JAVA _home/lib/tools.jar: $JAVA _home/jre/lib/ext/ Mysql-connector-java-5.1.7-bin.jar
. Modify the. bash_profile file (using these environment variables for a user right)
At the end of the . bash_profile file, add:
Export java_home=/usr/share/jdk1.6.0_20
Export path= $JAVA _home/bin: $PATH
export classpath=.: $JAVA _home/lib/dt.jar: $JAVA _home/lib/tools.jar
3, Logout
4. Re-Login
5. OK
Linux:java ODBC driver additions under MySQL