Java: Steps to include jars into classpath in Eclipse IDE

In this article, we will list down the steps to include required jars into classpath in Eclipse IDE

 

Step 1: Right-click on the project

Right-click on the project for which we want to include jars

Right-click –> Build Path –> Configure Build Path

1_Include_jars_into_classpath_in_Eclipse_IDE_right_click_on_project

 

Step 2: Libraries dialog box opens up with already included jars

Click External JARs…..

2_Include_jars_into_classpath_in_Eclipse_IDE_Libraries_dialog_box_opens_up

 

Step 3: JAR Selection dialog box opens up

Select the required jars –>  click Open

3_Include_jars_into_classpath_in_Eclipse_IDE_click_Add_External_JARs

 

Step 4: Finally click Ok

As we can see, ojdbc14 is included in the list at 2nd position

Note: This position can be changed and this doesn’t affects the project

4_Include_jars_into_classpath_in_Eclipse_IDE_ojdbc14_jar_includedi_in_the_list

 

Finally required jar is included into classpath in Eclipse IDE

5_Include_jars_into_classpath_in_Eclipse_IDE_ojdbc14_jar_included_in_classpath_in_Eclipse_IDE

Happy Coding !!
Happy Learning !!

Java JDBC: An example to connect Oracle database
Java JDBC: An example to connect MySQL database