簡體   English   中英

如何在創建 jar 文件時包含庫文件

[英]How to include library files while creating jar files

如何在 java 項目中包含 JOGL.jar 和 Gluegen-rt.jar? I have included these external jars in the eclipse, but when I try to create a Jar file of the project, the JAR file does not exceute. 它說缺少 JOGL.jar。

如何包含這些庫? 歡迎任何建議。

如何包含這些庫? 歡迎任何建議。

您可以分發多個 jar 文件,並確保在應用程序清單的類路徑中提到了引用的 jar 文件。

但是,由於您說“包含”,我懷疑您想將 jar 文件“合並”到單個 jar 文件中。 在這種情況下,您需要使用OneJarFatJar等軟件合並 jars。

檢查類路徑中是否存在 jar。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM