JDBC Download and Setup Environment | Advance Java - IndianTechnoEra
Latest update Android YouTube

JDBC Download and Setup Environment | Advance Java

Advance Java | IndianTechnoEra

As there multiple type of database that can be use in JDBC so we need those database and driver connector both which database we are going to use. 

We need JDK and an environment like Eclipse IDE for Enterprise Java and Web Developers to Environment 

Download JDK

Download Eclipse



Download DB &Connector:

Here are some database and connector:

MySQL:

    Download database 

    Download driver     Official Site

ORACLE:

    Download database 

    Download driver     Official Site

SQL Server

    Download database 

    Download driver     Official Site

PostgreSQL

    Download Database

    Download Driver    Official Site

How to load or set Driver?

There are Two ways to load the jar file:

  1. Paste the .jar file in jre/lib/ext folder
  2. Set classpath

Paste the '.jar' file 

Firstly, search the your loader driver .jar file then go to JRE/lib/ext folder and paste the jar file here.


Set classpath:

There are two ways to set the classpath:

  • temporary
  • permanent

Temporary set classpath:

How to set the temporary classpath:

Firstly, search the driver loader .jar file then open command prompt and write:

C:>set classpath=c:\folder\myJDBCDriver.jar;.;  


Note: The above given dir is the directory of existing driver loader you can change where your driver loader exist


Permanent set classpath:

How to set the permanent classpath:

Go to environment variable then click on new tab. 

In variable name write classpath and in variable value paste the path to ojdbc14.jar by appending ojdbc14.jar;.; as C:\oraclexe\app\oracle\product\10.2.0\server\jdbc\lib\ojdbc14.jar;.;

إرسال تعليق

Feel free to ask your query...
Cookie Consent
We serve cookies on this site to analyze traffic, remember your preferences, and optimize your experience.
Oops!
It seems there is something wrong with your internet connection. Please connect to the internet and start browsing again.
AdBlock Detected!
We have detected that you are using adblocking plugin in your browser.
The revenue we earn by the advertisements is used to manage this website, we request you to whitelist our website in your adblocking plugin.
Site is Blocked
Sorry! This site is not available in your country.