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.

2 comments:

branajam said...

Hi,
My name is James Branam and I'm the NetBeans Community Docs Manager. Your blog entry would make a fantastic tips and tricks entry for our Community Docs wiki (http://wiki.netbeans.org//CommunityDocs). Would you be willing to contribute it? If you need any help or have any questions, please contact me at james.branam@sun.com. I look forward to hearing from you.

branajam said...

Hi again,
Your blog entry would make a fantastic tips and tricks entry for our Community Docs wiki (http://wiki.netbeans.org//CommunityDocs). Would you be willing to contribute it? If you need any help or have any questions, please contact me at james.branam@sun.com. I look forward to hearing from you.