passing arguments to the JVM for a certain project

Hello!in our project we need to set some JVM-argumentslike "-Denvironment.setting=local"but i can't figure out how to do that in the Studio Creator IDEmaybe you have a solutionthx in advance
[233 byte] By [Laurenz] at [2007-11-26 8:54:59]
# 1
For a Java Project:Right-click on the project node to bring up its properties dialog.Select 'Run' on the categories list.Specify the VM options (without the -D).
KarthikR at 2007-7-6 22:51:55 > top of Java-index,Development Tools,Java Tools...
# 2
yes i found the same solution via google for netbeans 4.1but in java studio creator there's no optionfor setting vm argumentsunder project properties/run/
Laurenz at 2007-7-6 22:51:55 > top of Java-index,Development Tools,Java Tools...
# 3
i more detail:the option is not available for "JSF-Webapplication Projects"!for "General Java Class Library Projects" it is availableunfortunately we are developing jsf projects ...
Laurenz at 2007-7-6 22:51:55 > top of Java-index,Development Tools,Java Tools...
# 4
I'm no expert in this, but if your application is a web project, isn't it running in the JVM of the Application Server not its own JVM? Therefore setting JVM arguments for a project is irrelevant.
dkible at 2007-7-6 22:51:55 > top of Java-index,Development Tools,Java Tools...
# 5

For a web application, the JVM properties indeed need to be set for the application server's JVM and as such it cannot be set in the IDE. (The IDE cannot pass the parameters anyway since it merely invokes the commands provided by the appserver to start/stop/deploy-apps).

To solve your problem, you will need to set the JVM arguments at the appserver. You can set the JVM arguments in the admin console of the appserver. If you jush wish to set some environment properties for a given webapp, then you can use 'System.setProperty("environment.setting","local");' in the app's initialization code.

KarthikR at 2007-7-6 22:51:55 > top of Java-index,Development Tools,Java Tools...