本文介绍了在Netbeans中,如何设置等效于Eclipse的运行/调试配置参数?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我继承了一个使用XML作为输入的Java应用程序.在命令行中,它是这样运行的:

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

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

在eclipse中,您可以从运行"->调试配置..."(参数"选项卡)中设置运行/调试配置参数.您如何在Netbeans中设置等效项?

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

不知道它是否有所作为,但这是一个Netbeans maven项目.

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

谢谢!

推荐答案

我目前没有NetBeans,因此您可以对此进行调整,但是您可以右键单击该项目,并在设置配置"子菜单中单击鼠标右键. ,您只需选择管理配置",这将带您进入正确的对话框.然后,您将能够选择主类和参数.

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.

这篇关于在Netbeans中,如何设置等效于Eclipse的运行/调试配置参数?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-31 21:28