Forum Discussion

eetawil_yahoo_c's avatar
New Contributor
6 years ago

Groovy custom vmoptions not loaded

I'm importing an external jar that requires some runtime options so I added them to the .vmoptions file (and I did have an extra white line at the end) 




But it doesn't seem to be taken...

==> ERROR [UDPServiceImpl] init(); 0; Can't start because of error: Invalid UDP port: -1 (should be 7000)


When I run that jar from IntelliJ with those VM options I see port = 7000.


Is there a way in groovy to print the value of JAVA_OPTS (vmoptions) to validate the arguments used at runtime? Am I doing something wrong?



3 Replies

  • I did a small test['']); ==> com.smartbear.ready.ReadyApiSecurityManager['jmx.address']); ==> null


    For all -Dvariables that I added I get null when I run that in groovy. I did restart ReadyAPI after modifying the vmoption file.