Hello!
Please accept attached patch which is making java version check for other vm more bullet proof.
Originally, the java version was strictly expecting the searched item on first line.
However, when eg $JAVA_TOOL_OPTIONS is used, the output of forked process got messy. EG:
java -version
Picked up JAVA_TOOL_OPTIONS: -XX:+UseShenandoahGC
OpenJDK 64-Bit Server VM warning: Compressed Oops not supported with ShenandoahGC
....
My patch is making the usage of JAVA_TOOL_OPTIONS possible, as it is searching the output of forked
process by key.
Tahnx!
J.
- links to