How to use
- Method 01·The most commonly used common operation method: basic steps
Right-click "Project" → select Properties, select Java Build Path in the list on the left side of the pop-up dialog box, as shown in the figure below: Select Add External JARs, you can select them one by one (you can also select multiple jars, but they are limited to the same file folder) to add a third-party reference jar package.
The operation in the above method is universal, but every time a project is created, the Jar package needs to be reintroduced, and the Jar package is not reusable.
- Method 02·Quick version operation method: User Jar package type
Right-click "Project" → select Properties, select Java Build Path in the list on the left side of the pop-up dialog box, and the dialog box as shown above will pop up. Here, select "Add Library", and the dialog box as shown below will pop up. Select "User Library" and select →Next
In the dialog box that appears, you can select the user-defined library that has been created, or select User Libraries. Select "New" in the new dialog box that pops up to create a new user-defined library.
In the user-defined library to be created, enter the name of the new custom library, as shown below
Then for the new library, add the required Jar package
After adding user-defined libraries according to the above steps, you can reuse these defined User Libraries in the future, saving time for development.
- Method 03·Quick version operation method: Folder import method
In the project, create a new folder (eg:ibatis_jar), as shown in the figure below. In this example, the ibatis_jar folder is created, and the third-party jar package required for project development is copied to the folder.
Select the jar package that needs to be added to the project, right-click and select "Build PathàAdd to Build Path", so that the Jar package is successfully imported into the project.
The third method of importing Jar packages is simpler than the second method and more reusable. When we find the required Jar packages on different machines, we can just copy these folders directly.
it works
it works
it works