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