![]() How to add the jar file to the classpath?įor this, we have to go to “Advance System Settings”. The location which will be added to Classpath:- C:\Users\user\Downloads\mysql-connector-java-8.0.21.jar The folder where the Jar file is located:- C:\Users\user\Downloads\ ![]() We can copy the actual path of the jar file from here. In order to copy the jar files correctly in the Windows operating system, Go to the folder where the jar file is locating, now select jar file, right-click and select properties, in the security section you will find “Object name”. ![]() We have to add the location of the jar file, not the folder where the jar file is available.ĭon’t try to write the location name manually because we can do a spelling mistake, so it is recommended to copy the jar file location. Note:- In the CLASSPATH don’t add the location/folder where the jar file is available. The mysql-connector-java-.jar is the main jar file that will be used to develop the JDBC applications through the MySQL database. ![]() Download the JDBC driver/connector of the MySQL database. The JDBC driver of MySQL database doesn’t come along with MySQL database installation, We need to collect it separately. Step1) Collect JDBC driver of MySQL database. Now let us begin the establishing MySQL JDBC connection. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
August 2023
Categories |