[英]How do I set -DmyConfig=whatever when running a java program through “run file” in Netbeans?
I'm using netbeans 6.7.1 and I have a maven web project (war file). 我正在使用netbeans 6.7.1,并且有一个Maven Web项目(war文件)。
I'd like to profile part of the project by running a java class with a main method. 我想通过使用main方法运行java类来分析项目的一部分。 I need to specify a -DconfigDir=whatever when running this program.
运行此程序时,我需要指定-DconfigDir = whatever。
How do you specify this in netbeans? 您如何在netbeans中指定呢?
In eclipse I simply edit the run configurations. 在eclipse中,我只需编辑运行配置。 I've only seen where you can setup run configurations for "jar" projects, not "war" projects.
我只看到可以在其中为“ jar”项目而不是“ war”项目设置运行配置的地方。
It looks like you can do this in NetBeans 6.9. 看起来您可以在NetBeans 6.9中执行此操作。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.