JDK-6661130 : JRE 1.4.2 selection does not work on some machines due to msvcr71.dll dependency in jp2native.dll
  • Type: Bug
  • Component: deploy
  • Sub-Component: plugin
  • Affected Version: 6u10
  • Priority: P3
  • Status: Closed
  • Resolution: Fixed
  • OS: windows
  • CPU: generic
  • Submitted: 2008-02-08
  • Updated: 2011-05-13
  • Resolved: 2008-06-16
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 Availability Release.

To download the current JDK release, click here.
JDK 6
6u10 b13Fixed
Related Reports
Relates :  
Relates :  
Description
On machines which do not have the Microsoft Visual Studio tools installed and which therefore do not have msvcr71.dll on the system search path, the new plug-in can not run applets on top of JDK 1.4.2 due to a dependency of its native code on msvcr71.dll. Here is a dump from the browser-side debugging code indicating the problem:

JRE 1.4.2.16: java.lang.UnsatisfiedLinkError: C:\Program Files\Java\jre6\bin\jp2native.dll: Can't find dependent libraries
JRE 1.4.2.16:   at java.lang.ClassLoader$NativeLibrary.load(Native Method)
JRE 1.4.2.16:   at java.lang.ClassLoader.loadLibrary0(Unknown Source)
JRE 1.4.2.16:   at java.lang.ClassLoader.loadLibrary(Unknown Source)
JRE 1.4.2.16:   at java.lang.Runtime.load0(Unknown Source)
JRE 1.4.2.16:   at java.lang.System.load(Unknown Source)
JRE 1.4.2.16:   at sun.plugin2.util.NativeLibLoader.tryLoading(Unknown Source)
JRE 1.4.2.16:   at sun.plugin2.util.NativeLibLoader.tryLoadingFromJRE(Unknown Source)
JRE 1.4.2.16:   at sun.plugin2.util.NativeLibLoader.load(Unknown Source)
JRE 1.4.2.16:   at sun.plugin2.os.windows.Windows.<clinit>(Unknown Source)
JRE 1.4.2.16:   at sun.plugin2.util.SystemUtil.computeIsVista(Unknown Source)
JRE 1.4.2.16:   at sun.plugin2.util.SystemUtil.getOSType(Unknown Source)
JRE 1.4.2.16:   at sun.plugin2.util.SystemUtil.formatNativeLibraryName(Unknown Source)
JRE 1.4.2.16:   at sun.plugin2.util.NativeLibLoader.tryLoading(Unknown Source)
JRE 1.4.2.16:   at sun.plugin2.util.NativeLibLoader.tryLoadingFromJRE(Unknown Source)
JRE 1.4.2.16:   at sun.plugin2.util.NativeLibLoader.load(Unknown Source)
JRE 1.4.2.16:   at sun.plugin2.main.client.PluginMain.<clinit>(Unknown Source)
JRE 1.4.2.16: Exception in thread "main" JRE 1.4.2.16: java.lang.UnsatisfiedLinkError: C:\Program Files\Java\jre6\bin\jp2native.dll: Can't find dependent libraries
JRE 1.4.2.16:   at java.lang.ClassLoader$NativeLibrary.load(Native Method)
JRE 1.4.2.16:   at java.lang.ClassLoader.loadLibrary0(Unknown Source)
JRE 1.4.2.16:   at java.lang.ClassLoader.loadLibrary(Unknown Source)
JRE 1.4.2.16:   at java.lang.Runtime.load0(Unknown Source)
JRE 1.4.2.16:   at java.lang.System.load(Unknown Source)
JRE 1.4.2.16:   at sun.plugin2.util.NativeLibLoader.tryLoading(Unknown Source)
JRE 1.4.2.16:   at sun.plugin2.util.NativeLibLoader.tryLoadingFromJRE(Unknown Source)
JRE 1.4.2.16:   at sun.plugin2.util.NativeLibLoader.load(Unknown Source)
JRE 1.4.2.16:   at sun.plugin2.os.windows.Windows.<clinit>(Unknown Source)
JRE 1.4.2.16:   at sun.plugin2.util.SystemUtil.computeIsVista(Unknown Source)
JRE 1.4.2.16:   at sun.plugin2.util.SystemUtil.getOSType(Unknown Source)
JRE 1.4.2.16:   at sun.plugin2.util.SystemUtil.formatNativeLibraryName(Unknown Source)
JRE 1.4.2.16:   at sun.plugin2.util.NativeLibLoader.tryLoading(Unknown Source)
JRE 1.4.2.16:   at sun.plugin2.util.NativeLibLoader.tryLoadingFromJRE(Unknown Source)
JRE 1.4.2.16:   at sun.plugin2.util.NativeLibLoader.load(Unknown Source)
JRE 1.4.2.16:   at sun.plugin2.main.client.PluginMain.<clinit>(Unknown Source)
JRE 1.4.2.16:
JRE 1.4.2.16: Exception in thread "main"
JVM instance for 1.4.2.16 exited

Comments
SUGGESTED FIX http://sa.sfbay.sun.com/projects/deployment_data/6u10/6661130.0 testcase: http://j2se.east.sun.com/deployment/www/tests/1.6.0_10/6661130/
12-02-2008

EVALUATION Need to load msvcr71.dll manually on earlier JREs before loading jp2native.dll.
12-02-2008

WORK AROUND Copy msvcr71.dll to C:\WINDOWS\System32.
08-02-2008