简体   繁体   中英

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). How do i make sure those projects are included in the final .jar file after building? Do i have to compile each project individually and put their .jar files in the lib folder?

you can use code for doing that by

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM