Home > Common Problem > How to import jar package in IntelliJ IDEA

How to import jar package in IntelliJ IDEA

coldplay.xixi
Release: 2023-01-13 00:29:21
Original
68947 people have browsed it

IntelliJ IDEA method of importing jar packages: first enter the idea project management interface, click "project structure"; then select the "libraries" option, click the green " " sign, and select the "java" option; finally select the "java" option on a stand-alone computer jar package file and confirm.

How to import jar package in IntelliJ IDEA

The operating environment of this article: Windows 7 system, IntelliJ IDEA 2017.2.2 version, Dell G3 computer.

IntelliJ IDEA method of importing jar packages:

1. Enter the idea project management interface and select the java project.

How to import jar package in IntelliJ IDEA

2. Enter the idea project interface and click "project structure" in the upper right corner

How to import jar package in IntelliJ IDEA

3. Enter "project After entering the "structure" interface, select the "libraries" option.

How to import jar package in IntelliJ IDEA

4. Click the green " " sign, select the "java" option, identify the import method through local files, and import the jar package.

The second is to use maven, enter the jar package keyword and then search, select the jar package you need in the search results, idea will process the dependencies and pom.xml file, and download the jar package.

How to import jar package in IntelliJ IDEA

#5. Find the directory where the jar package file you need is located, select the jar package file on a single machine and confirm.

How to import jar package in IntelliJ IDEA

#6. Idea prompts you to add the jar package to those project modules that depend on it. You can hold down ctrl a to select all, or ctrl single-click to select.

How to import jar package in IntelliJ IDEA

#7. Finally, when you see the jar package in the “libraries” interface, click OK to confirm.

How to import jar package in IntelliJ IDEA

If you want to learn more about programming, please pay attention to the php training column!

The above is the detailed content of How to import jar package in IntelliJ IDEA. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template