How to set Oracle's Jdbc_java in eclipse

Source: Internet
Author: User

First step: Find the JDBC Driver
I used the ORACLE, oracle_home]\jdbc\lib\ below have a variety of JDBC, be sure to pay attention to compatibility issues, specific look at the second step, respectively, which file.

Step two: Add the driving path to the environment variable Classpath
-Add [Oracle_home]\jdbc\lib\classes111.zip and
[Oracle_home]\jdbc\lib\nls_charset11.zip to your CLASSPATH.
(Add classes12.zip and Nls_charset12.zip if JDK 1.2.x or 1.3 is
Used. Add Ojdbc14.jar and Nls_charset12.zip if JDK 1.4 is used.)
-Make sure [Oracle_home]\bin was in your PATH.

For example: my [oracle_home]=e:\oracle\ora92
The JDK is 5.0, and I'm using the jdk1.4 requirements: Ojdbc14.jar and Nls_charset12.jar.
So my classpath=. E:\oracle\ora92\jdbc\lib\ojdbc14.jar; E:\oracle\ora92\jdbc\lib\nls-charset12.jar;

Step three set Eclipse
That's easy.
Windows-〉perferences-〉java-〉buildpath->new (Take a name like: JDBC)-〉add jars (Find the path to the jar)-〉ok

Fourth Step Setup Project
Right-click the project name-〉buildpath-〉configer buildpath-〉libraries tab-〉ADD liabraries
It's OK!

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.