Home >Java >javaTutorial >How to Integrate External Libraries into IntelliJ IDEA Artifacts?
Incorporating External Libraries into IntelliJ IDEA Artifacts
To seamlessly integrate external libraries within your IntelliJ IDEA artifacts, ensuring access to their classes, adhere to the following guidelines:
Option 1: Extract Dependency into Artifact JAR
This method bundles the dependent library directly into the artifact JAR:
Option 2: Link Dependencies via Manifest.MF
Class-Path: <path/to/dependent/library.jar> Main-Class: <fully/qualified/main/class/name>
Example Project
Refer to the "HelloWithDependencies.zip" sample project for a practical demonstration of both approaches:
Artifact Configuration
For both options, ensure the following artifact configurations are in place:
The above is the detailed content of How to Integrate External Libraries into IntelliJ IDEA Artifacts?. For more information, please follow other related articles on the PHP Chinese website!