fixing issue with JRE version that could 7 or 8 and not 1.X