United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: 6661130 JRE 1.4.2 selection does not work on some machines due to msvcr71.dll dependency in jp2native.dll
6661130 : JRE 1.4.2 selection does not work on some machines due to msvcr71.dll dependency in jp2native.dll

Details
Type:
Bug
Submit Date:
2008-02-08
Status:
Closed
Updated Date:
2011-05-13
Project Name:
JDK
Resolved Date:
2008-06-16
Component:
deploy
OS:
windows
Sub-Component:
plugin
CPU:
generic
Priority:
P3
Resolution:
Fixed
Affected Versions:
6u10
Fixed Versions:
6u10

Related Reports
Relates:
Relates:

Sub Tasks

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/
                                     
2008-02-12
EVALUATION

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

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



Hardware and Software, Engineered to Work Together