The easiest way out of this problem is to remove the version checker from the installer.
(1) Get PackageMaker.app
This helpful tool for creating and editing installers used to be bundled with Xcode. You can still download it from the Xcode downloads page:
(1.1) Go to the Xcode download page
(1.2) Downlaod Auxiliary Tools for Xcode (There are several Aux. Tools, make sure you choose the one that contains PackageManager)
(1.3) This is the one.
(2) Download your favourite JRE/JDK from the Oracle website