Netbeans how to set command line arguments in Java

前端 未结 10 1326
陌清茗
陌清茗 2020-11-27 16:36

I am trying to set command line arguments in a Netbeans 7.1 Java project on Windows 7 64 bit.

Netbeans is not passing the arguments I give it.

I go to

10条回答
  •  被撕碎了的回忆
    2020-11-27 16:57

    Note that from Netbeans 8 there is no Run panel in the project Properties.

    To do what you want I simply add the following line (example setting the locale) in my project's properties file:

    run.args.extra=--locale fr:FR
    

提交回复
热议问题