0

I have to start a program that need the -D option like: -Dproperty=path But where I can set this in Eclipse IDE?

user840718
  • 1,563
  • 6
  • 29
  • 54

3 Answers3

4

In RunConfigurations->[YourRunConfiguration]->Arguments->VM arguments

Marvin Emil Brach
  • 3,984
  • 1
  • 32
  • 62
4

Right click on your main class or project in eclipse --> Run As --> Run Configurations --> Select your main class's "run configuration" on the left side of the opened window.

Please take a look on the attached print screen

enter image description here

M. Abbas
  • 6,409
  • 4
  • 33
  • 46
0

You can right click on the project and in the pop menu you have an option Run as... resp. Debug As... On this menu you can create runtime configurations and there you can also add the switches that should be passed to the java environment. VM Arguments

Devolus
  • 21,661
  • 13
  • 66
  • 113