cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
ben2011
Level 3

Setting system property for Launcher

Hi,

How can I set system property (-Dkey=value) for Launcher?

I have tried to add to Arguments as follow:

-Dkey=value $CMD_LINE_ARGUMENTS$

But it didn't work as java expects the order to be:

java -Dkey=value my.main.class $CMD_LINE_ARGUMENTS$

Any help is appreciated,

Ben
Labels (1)
0 Kudos
(1) Reply
ben2011
Level 3

Hi,

I found my answer in one of the previous post:

http://community.flexerasoftware.com/showthread.php?t=183996&highlight=launcher

Basically, I have to use

lax.nl.java.option.additional

LAX Properties to pass a custom variable as a part of the command line.

It works!

Thanks!

Ben
0 Kudos