简体   繁体   中英

In Netbeans how do you set the equivalent of Eclipse's run/debug configuration arguments?

I've inherited a java app that uses a XML as input. From the command line it runs like this:

java -jar myJar.jar -f /path/to/my/xmlfile.xml

In eclipse you can set run/debug config args from the Run->Debug Configurations... (arguments tab). How do you set the equivalent in Netbeans?

Don't know if it makes a difference but it's a Netbeans maven project.

thanks!

I don't have NetBeans right now, so you might adapt this, but you can just right click on the project, and in the "Set configuration" submenu, you just choose "Manage configurations", which will lead you to the right dialog. Then you'll be able to choose the main class and arguments.

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