天天看點

netbeans 将項目打包生成單個可執行的 jar

netbeans 将項目打包生成單個可執行的 jar

檔案頁裡找到build.xml檔案,打開在</project>前 加入以下代碼儲存之

  其中 <property name="store.jar.name" value="SwitchHexAndChinese"/> 中的value可以随意更改,這個就是jar包名

build.xml右鍵即可打包生成SwitchHexAndChinese.jar

netbeans 将項目打包生成單個可執行的 jar

生成的檔案

netbeans 将項目打包生成單個可執行的 jar