different jvm args according to jvm version
Brought to you by:
grzegok
Hello,
To use java9, I need to add the following args to this new jvm:
--add-modules=java.se.ee --add-modules=java.xml.bind
But only with java9 ! If an older jvm get this args, it doesnt launch and just displays the message:
*Error: Could not create the Java Virtual Machine
Error: A fatal exception has occured. Program will exit.
*
So, how can I fix that, My application must be running with a jvm from 1.4 to 1.9.
I found the solution, just adding this first option: