how to create jar file in netbeans

走远了吗. 提交于 2019-12-25 12:09:08

问题


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


回答1:


  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



来源:https://stackoverflow.com/questions/23196200/how-to-create-jar-file-in-netbeans

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!