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.
.jar
lib
Follow these:- 1. Right click on project opened in netbeans editor 2. select properties 3. choose libraries 4. add jar 5. click ok