How to pass parameters to JVM?

Hi all,

I'd like to know how you can pass parameters to the VM using IntelliJ. I'm aware of the Run/Debug configuration dialog, in which you can specify them, but this is not usable for me. Because,when I do a context run (ctrlshiftF10) in a unit test, I have to supply the VM parameters. This means, that for every test I run, I have to supply the VM parameters manually (it's not possible to keep 10.000 run configurations stored). So, I'd like to specify the VM paramers at the location of where I defined the JVM (Project Settings -> JDK's), but there's no option to specify the VM arguments there...

Anyone a suggestion??

Thanks, Erik

3 comments
Comment actions Permalink

Hello Erik,

There's an "Edit Defaults" button in the "Run/Debug Configurations" dialog..

-tt


0
Comment actions Permalink

Great, I was looking for something like that! Thanks!

0
Comment actions Permalink

This is not working. I tried to set some default VM options in Edit Default JUnit for Test Kind "All in directory". When I run my test, it doesn't read those default VM arguments. All I need is to set some default VM option for my JRE so that when I run anything (Application, JUnit) it should read those VM options first. In this way I don't have to manually provide those arguments again and again. This option is so simple in Eclipse and I wonder why IntelliJ would make this so complex. 

This is really thumb down point I would say. This should have been way much simpler. Please add this option. 

0

Please sign in to leave a comment.