简体   繁体   中英

How to run NetBeans Java project from command line?

I have a NetBeans Java project which run fine on NetBeans. The application has several classes, reads from several files to take input and also uses Jackson jar library. Now, how to run this project from command line properly so that it gets required library and files it needs?

Netbeans uses Apache Ant for building. Install Ant then execute in terminal, under project folder:

ant run

Tutorial on Ant for Netbeans

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