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

Was it helpful?

Solution

  1. set the main class in run configuration
  2. do a clean build
  3. 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

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top