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

I have inherited a java application that uses XML as input. At the command prompt, it runs as follows:

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

In eclipse, you can set the startup / debug configuration arguments from the Run-> Debug Configurations ... parameters (arguments tab). How do you set the equivalent in Netbeans?

I don't know if that matters, but this is a NetBeans maven project.

thanks!

+4
source share
1 answer

I don’t have NetBeans right now, so you can adapt this, but you can just right-click on the project, and in the “Install Configuration” submenu, you simply select “Manage Configurations”, which will lead you to the right dialog. Then you can select the main class and arguments.

+2
source

All Articles