简体   繁体   English

netbeans:如何从具有其他项目依赖项的项目中编译.jar文件

[英]netbeans: How to compile a .jar file from a project with other project dependencies

I have a project which has other projects as dependencies (not just .jar files, actual projects). 我有一个项目,其中有其他项目作为依赖项(不仅仅是.jar文件,实际项目)。 How do i make sure those projects are included in the final .jar file after building? 构建后,如何确保这些项目包含在最终的.jar文件中? Do i have to compile each project individually and put their .jar files in the lib folder? 我是否必须单独编译每个项目并将其.jar文件放在lib文件夹中?

you can use code for doing that by 您可以使用代码通过

 Runtime rt = Runtime.getRuntime();
 Process proc = rt.exec("javac className");

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 NetBeans中的桌面libgdx项目中的jar文件 - Jar file from desktop libgdx project in netbeans 如何在Eclipse Project中使用Netbeans Jar文件 - How to use Netbeans Jar file in Eclipse Project 如何从具有本机库依赖项的netbeans opencv项目中构建可执行jar? - How can i build a executable jar from a netbeans opencv project which has native library dependencies? 如何在没有jar文件的命令行中编译和运行Netbeans java项目? - How to compile and run a Netbeans java project in command line without jar file? 如何将具有所有依赖项的Netbeans maven项目移动到其他计算机 - How to move a Netbeans maven project with all dependencies to other machine 如何创建仅具有项目依赖项而没有项目类的Jar文件? - How to create a Jar file with only project dependencies, without project classes? 从NetBeans项目的命令行运行jar时找不到文件 - File not found when running jar from command line of a NetBeans project 如何使用Netbeans检查项目和依赖项中的Java文件使用情况? - How to check java file usage in project and dependencies using Netbeans? 将.jar文件添加到netbeans中的项目后,如何将其中的类导入到netbeans中的项目中? - After adding a .jar file to a project in netbeans, how do I import classes in it to my project in netbeans? 如何在Netbeans项目中添加.jar文件并指定相对路径 - How to add a .jar file in a Netbeans project specifying a relative path
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM