Add version matching code for server JRE 9