Saturday, September 27, 2008

Netbeans setting jvmargs for SHIFT-F6

In Netbeans there is an option to run the current file. It works fine until we need the option to set a JVM argument.
I hit the same problem and was searching the build xml for target that runs the file and customize it. But accidentally found a property runmain.jvmargs in project.properties file and set the JVM args that i wanted and it worked.

--> {project}/nbproject/project.properties (runmain.jvmargs)

This also works for web projects.