Added a simple check for the correct JRE version