You can also try using an object tag.
With it, you can determine which version of java is installed and ask the user to download it if it does not exist.
This is an example object tag taken from the application I'm working on, the complexity of the JRE required us to work on 1.4.2_03 for compatibility with other applications.
<object classid="clsid:CAFEEFAC-0014-0002-0003-ABCDEFFEDCBA" id="MyApplet" name="MyApplet" width="4" height="4" codebase="http://java.sun.com/products/plugin/autodl/jinstall-1_4_2_03-windows-i586.cab#Version=1,4,2,03">
Classid indicates the version of Java you want to download, you can install it in a specific JRE, a specific family, that is 1.4.X or any other, latest version.
The codebase controls where the user is sent if they do not match the established class.
Please note that if the client is 1.5 or later, you cannot reference the older JRE due to security restrictions, you can override this through the registry setting in Windows, but I would not recommend it.
I believe that security is configured so that you can only reference the old JRE in the same family. that is, the user has 1.6.0.10, you can refer to 1.6.0.1, but you canβt go to anything in 1.5.X Although I think that I remember that after 1.6.0.11 a security dialog box appeared, where, as before , it simply rejected the request by default.
Keibosh
source share