JDK-6908502 : deployJava.installLatestJRE() does not work sometimes - download problems
  • Type: Bug
  • Component: deploy
  • Sub-Component: deployment_toolkit
  • Affected Version: 6u18
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • OS: windows
  • CPU: x86
  • Submitted: 2009-12-08
  • Updated: 2013-09-12
  • Resolved: 2011-08-17
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.

To download the current JDK release, click here.
7u2 b03Fixed 8Fixed
uninstall all JRE on your machines

go to:


it should invoke installLatest to install latest JRE and run applet.

but sometimes it fail with a download error dialog now.

EVALUATION 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.