- set the main class in run configuration
- do a clean build
- go to the dist folder and you can find the jar there as a runnable one
for further information refer this Creating_an_Executable_Java_File_in_NetBeans
Question
I want to create independent jar files in netbeans like we can do in eclipse. Normally people suggest to clean and built the project and there is a jar file created. But to run these jar file the .java files, the codes are also required. Isn't there any way to create jar files which runs independently without requiring java codes? Thanks
Solution
for further information refer this Creating_an_Executable_Java_File_in_NetBeans