问题描述
我正在使用一些 apache HttpClient jars,所以我将它们放在我项目的 lib 目录中,当 Netbeans 编译项目时,它会复制 lib 并将项目 jar 生成到 dist 目录中,但是当我使用 webstart 运行我的项目时,我需要将项目jar和lib复制到tomcat的ROOT目录中,不知道Netbeans是否可以生成一个包含lib目录中所有jar的项目jar,所以我不必将项目jar和lib目录复制到tomcat的根目录.Netbeans 能做到吗?
I'm using some apache HttpClient jars, so I put them in my project's lib directory, when Netbeans compiles the project, it copies the lib and generated a project jar into dist directory, but when I run my project with webstart, I need to copy the project jar and lib into tomcat's ROOT dir, I wonder if Netbeans can generate a project jar that includes all the jars in the lib dir, so I don't have to copy the project jar and the lib dir into tomcat's ROOT dir. Can Netbeans do that ?
推荐答案
好的,在以下站点找到了答案:http://arunasujith.blogspot.com/2011/08/how-to-build-fat-jar-using-netbeans.html
OK, found the answer at the following site : http://arunasujith.blogspot.com/2011/08/how-to-build-fat-jar-using-netbeans.html
这篇关于如何将 lib 中的 jar 包含到 Netbeans 中的项目 jar 文件中?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!