JDK-6908502 : deployJava.installLatestJRE() does not work sometimes - download problems
  • Type: Bug
  • Status: Resolved
  • Resolution: Fixed
  • Component: deploy
  • Sub-Component: deployment_toolkit
  • Priority: P3
  • Affected Version: 6u18
  • OS: windows
  • CPU: x86
  • Submit Date: 2009-12-08
  • Updated Date: 2013-09-12
  • Resolved Date: 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.
JDK 7 JDK 8
7u2 b03Resolved 8Resolved
Description
uninstall all JRE on your machines

go to:

http://java.sun.com/docs/books/tutorial/deployment/applet/deployingApplet.html

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

but sometimes it fail with a download error dialog now.

Comments
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.
2011-06-14