Java Import jar Package

Source: Internet
Author: User

The new Java project, which wants to reference the methods in other jar packages, needs to introduce the. jar file into its own project.

For example:

Org.apache.commons.codec.binary.Base64;

1. Download the jar package.

http://commons.apache.org/proper/commons-codec/download_codec.cgi

Download

3. Create a new Lib directory under the Projec project.

3. Unzip the downloaded compressed package and copy the. jar file from the compressed package to the project's Lib directory.

3. Select Commons-codec-1.10.jar-> in the Lib directory right-click->build path, add to build path

4. If the jar package is added for the first time, the project will automatically add a directory referenced library and contains the jar package:

5. Right-click the project name->build Path, config build path can see the libraries inside can already appear the added jar package, OK!

Java Import jar Package

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.