How can I include external jar on my Netbeans project

后端 未结 12 2775
挽巷
挽巷 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 07:12

    Copy that jar file to:

    C:\Program Files\Java\jdk\jre\lib\ext

    and

    C:\Program Files\Java\jre\lib\ext

    You should be able to use it in Netbeans and in your manual imports, just like standard imports.

提交回复
热议问题