FaqEnvVarsDuringRun

(Difference between revisions)
m (How can I run/debug a program in NetBeans with certain environment variables set to necessary values?)
 
Line 7: Line 7:
[http://ant.apache.org/manual/Tasks/java.html Ant documentation for <java>]
[http://ant.apache.org/manual/Tasks/java.html Ant documentation for <java>]
-
If you are using NetBeans 6.5+, be sure to uncheck '''Compile on Save''' in the '''Compiling''' tab of the project properties dialog.
+
Be sure to uncheck '''Compile on Save''' in the '''Compiling''' tab of the project properties dialog.
Note: Ant does not currently provide the necessary machinery for you to configure these from a properties file. See:
Note: Ant does not currently provide the necessary machinery for you to configure these from a properties file. See:
[http://issues.apache.org/bugzilla/show_bug.cgi?id=40448 Ant bug #40448]
[http://issues.apache.org/bugzilla/show_bug.cgi?id=40448 Ant bug #40448]
-
See also [[FaqSysPropsDuringRun | FaqSysPropsDuringRun]].
+
See also [[FaqSysPropsDuringRun]].
--------
--------
-
Applies to: NetBeans 4.x, 5.x, 6.x
+
Applies to: NetBeans 6.5 and later
Platforms: all
Platforms: all

Current revision as of 21:49, 13 December 2011

How can I run/debug a program in NetBeans with certain environment variables set to necessary values?

(For example I often need to debug programs with the $DISPLAY variable set.)

A: you will need to copy the -init-macrodef-java and/or -init-macrodef-debug targets into build.xml from build-impl.xml and add one or more <env> parameters. See: Ant documentation for <java>

Be sure to uncheck Compile on Save in the Compiling tab of the project properties dialog.

Note: Ant does not currently provide the necessary machinery for you to configure these from a properties file. See: Ant bug #40448

See also FaqSysPropsDuringRun.


Applies to: NetBeans 6.5 and later

Platforms: all

Not logged in. Log in, Register

By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo