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.
在 Netbeans 7.1 中,当我附加了一个外部 blucove.jar 库时,构建它并且输出文件是 app.jar。当我从 CMD 运行 app.jar 时使用:java -jar app.jar,外部库不是在职的。
有什么解决办法吗?
您需要在项目属性中启用“复制依赖库”:
启用后,您的dist目录应包含:
dist
app.jar lib/blucove.jar