Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我开发了一个包含外部 jar 的程序。现在我需要将此程序转换为可运行的 jar(它具有 main 方法)并将其放置在另一个位置。
但是如何在这种转换中包含外部依赖项。我不希望其他人一次又一次地下载外部 jar。
问候,湿婆
右键单击您的项目,然后转到Export-> Java->Runnable JAR File并选择Package Required libraries into generated JAR单选框
Export
Java
Runnable JAR File
Package Required libraries into generated JAR