如何将 lib 中的 jars 包含到 Netbeans 中的项目 jar 文件中? [英] How to include jars in lib into project jar file in Netbeans?
问题描述
我正在使用一些 apache HttpClient jar,所以我将它们放在我项目的 lib 目录中,当 Netbeans 编译项目时,它会复制 lib 并生成一个项目 jar 到 dist 目录中,但是当我使用 webstart 运行我的项目时,我需要将项目jar和lib复制到tomcat的ROOT目录下,不知道netbeans能不能生成一个项目jar包含lib目录下的所有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 中的 jars 包含到 Netbeans 中的项目 jar 文件中?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!