This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Currently netbeans allows you to set arguments for a class in the execution tab of the class's property sheet, but it does not allow you to specify system properties that are to be passed to the class. Considering that in the Java tutorial, it is recommended that system properties be used rather than command line arguments for passing information to a program, this enhancement request should be seriously considered. See: http://java.sun.com/docs/books/tutorial/essential/attributes/cmdLineArgs.html The only way you can set system properties in netbeans 3.2 is by cloning an executor and adding the "-Dproperty=value" settings in the executors process aguments property. I would like to be able to configure properties on a per class basis. I have some suggestions: * Add a "System property tag replace" property (with a default value of "-D" ) on the appropriate executor, debugger and compiler types on the expert tab (just like there are tag replacement properties on the expert tab of some of the compiler types). The reason I suggest this is that there are some VMs that do not use the -D tag for passing system properties (e.g. The Microsoft VM has the format "/d:<name>=<value>"). * Add a {systemproperties} tag that can be substituted into the process arguments when executing the VM (e.g. like {bootclasspath} ). * Add a "System properties" property to the execution tab on the properties panel for an executable java file (so now there will be both an 'Arguments' and 'System properties' properties on the properties panel).
I am not sure who should handle this, may be it will be necessary handle it in java module, it will be java file property like Arguments.
Target milestone -> 3.3.1.
Target milestone -> 3.4
Target milestone was changed from '3.4' to TBD.
Java module's business.
New projects infrastructure could solve it, isn't?
*** Issue 27719 has been marked as a duplicate of this issue. ***
See also issue #17980.
Removed PROJECTS keyword since the projects prototype has been canceled. For more details see http://www.netbeans.org/servlets/ReadMsg?msgId=619519&listName=nbdiscuss
Execution properties were removed with new ant-based build system and replaced by readable project.properties in nbproject directory. You can specify application arguments (application.args) and JVM arguments (run.jvmargs).