United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: JDK-6827651 With 1.6.0_13 JNLP files cannot specify to run with j2se version 1.4*
JDK-6827651 : With 1.6.0_13 JNLP files cannot specify to run with j2se version 1.4*

Details
Type:
Bug
Submit Date:
2009-04-08
Status:
Closed
Updated Date:
2011-02-16
Project Name:
JDK
Resolved Date:
2009-05-19
Component:
deploy
OS:
windows_xp
Sub-Component:
plugin
CPU:
x86
Priority:
P3
Resolution:
Fixed
Affected Versions:
6u10
Fixed Versions:
6u14 (b05)

Related Reports

Sub Tasks

Description
FULL PRODUCT VERSION :
java version "1.6.0_13"
Java(TM) SE Runtime Environment (build 1.6.0_13-b03)
Java HotSpot(TM) Client VM (build 11.3-b02, mixed mode, sharing)

ADDITIONAL OS VERSION INFORMATION :
Microsoft Windows XP [Version 5.1.2600]

A DESCRIPTION OF THE PROBLEM :
Our JNLP files that specify the j2se version as 1.4.2_13 fail to load in the new Java-PlugIn under 1.6.0_13 (our jar file was compiled with 1.4.2_13).  If we set the version to 1.6 the files load without any problem.  If we drop back to 1.6.0_12 the files also run just fine.

STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
Create a JNLP file that sets the j2se version to 1.4.2_13

EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
That the JNLP file would load and execute as normal.
ACTUAL -
The Java-PlugIn begins to start and then disappears.

REPRODUCIBILITY :
This bug can be reproduced always.

Release Regression From : 6u12
The above release value was the last known release where this 
bug was not reproducible. Since then there has been a regression.

                                    

Comments
SUGGESTED FIX

http://sa.sfbay.sun.com/projects/deployment_data/6u14/6827651.0/
                                     
2009-04-10
EVALUATION

In 6u13, Java Web Start will launch JNLP applets using JNLP2Viewer code.   If the applet requires 1.4.2 JRE to launch, applet won't start and fail with error dialog.

Root cause is we are calling JFrame.add or JFrame.setLayout directly, which doesn't work in 1.4.2.

Fix:  If we running in 1.4.2, use JFrame.getContentPane().add or JFrame.getContentPane.setLayout instead.
                                     
2009-04-10



Hardware and Software, Engineered to Work Together