JDK-6908502 : deployJava.installLatestJRE() does not work sometimes - download problems
The Version table provides details related to the release that this issue/RFE will be addressed.
Unresolved : Release in which this issue/RFE will be addressed. Resolved: Release in which this issue/RFE has been resolved. Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availabitlity Release.
uninstall all JRE on your machines
it should invoke installLatest to install latest JRE and run applet.
but sometimes it fail with a download error dialog now.
This problem doesn't reproduce every time. In fact, it's less likely to reproduce than reproducing it. When the problem occurred, the HttpSendRequest in CDownloadDialog::DownloadFile returns an error code of 12029 (ERROR_INTERNET_CANNOT_CONNECT) while trying to download http://java.sun.com/webapps/download/AutoDL?BundleId=36668 which in turns download the JRE iftw bundle. Adding some retry logic when encountering ERROR_INTERNET_CANNOT_CONNECT seems to have fixed the problem.
Also including some cleanup in this fix:
- use windows error code instead of defining our own;
- local variable name, szURL, is in conflict with the input parameter name.