![](/img/trans.png)
[英]How to create single executable jar file including all main and test packages including resource files
[英]Netbeans: how to create an executable .jar file with all libraries and resource files included?
我嘗試clean and build
然后在dist
目錄中找到一個.jar文件。 但是,.jar文件中缺少程序正常運行所需的庫和資源文件。 一種解決方法是將所有庫和資源文件放在.jar文件的同一目錄或子目錄中的某個位置。 這很不方便。 如何將所有內容注入.jar文件?
請參閱有關打包和分發Java桌面應用程序的NetBeans文檔,尤其是有關運行和分發JAR文件的部分 。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.