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.
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.
2. Enter the idea project interface and click "project structure" in the upper right corner
3. Enter "project After entering the "structure" interface, select the "libraries" option.
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.
#5. Find the directory where the jar package file you need is located, select the jar package file on a single machine and confirm.
#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.
#7. Finally, when you see the jar package in the “libraries” interface, click OK to confirm.
If you want to learn more about programming, please pay attention to thephp trainingcolumn!
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!