How can I include external jar on my Netbeans project

后端 未结 12 2784
挽巷
挽巷 2020-11-27 06:25

When I run \"clean and build\" the .jar file that is being created only runs if the lib folder is at the same folder of the .jar file.

12条回答
  •  星月不相逢
    2020-11-27 06:59

    Try this - in the Netbeans IDE:

    1. Go to Tools --> Libraries
    2. In the dialog box, on the bottom left click "New Library", give a name
    3. On the right side, click on "Add JAR/Folder"
    4. Click OK on the bottom right
    5. Re-start the IDE and check.

提交回复
热议问题