You can follow these steps:
- Extract the zip file mysql-connector-java-5.1.8.zip in any place as you wish.
- Copy file 'mysql-connector-java-3.1.12-bin.jar' from the extracted folder into
\jre\lib\ext folder. jdk1.5\jre\lib\ext folder which on my system happens to be 'C:\Program Files\Java\jdk1.6.0_14\jre\lib\ext folder. jdk1.5\jre\lib\ext'. - Go to control Panel->Advance->Environment Variable->System Variable.
- The next step depends on your system variable:
- IF YOU HAVE CLASSPATH:
- Click once at Classpath and then click edit.
- At the end of the Variable Value, simply put ';
\jre\lib\ext\mysql-connector-java-5.1.8-bin.jar' (Without the single quotes ;) which on my system happens to be ';C:\Program Files\Java\jdk1.6.0_14\jre\lib\ext\mysql-connector-java-5.1.8-bin.jar'. - Click OK.
- IF YOU DO NOT HAVE CLASSPATH:
- Click on New.
- Put 'CLASSPATH' at Variable name, and '.;
\jre\lib\ext\mysql-connector-java-5.1.8-bin.jar' at Variable Value. - Click OK
1 comment:
thanx for such a good help
Post a Comment