How to import Java jar packages in eclipse JDBC (graphic description) _java

Source: Internet
Author: User

When you are programming with JDBC, you need to connect to the database, import the jar package is necessary, import other jar package methods as well, the import method is

Open Eclipse

1. Right-click the project to import the jar package, point properties
2. Select Java build path on the left, select libraries on the right
3. Choose Add External Jars
4. Select the jar package according to the path of the
Make sure it's done.

Java connection MySQL's latest driver package download address

Http://www.mysql.com/downloads/connector/j

There are two ways to import a jar package, the first is to put the jar package in the project's directory, by adding a jar package, is using a relative address, so that the project copied to another computer can also be used

The second method is to import the external jar package, which is an absolute address, if the project is to be copied to another computer and then re-import

The first method, the recommended use of

The second method

The following will appear after you add

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.