United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: JDK-6606282 UI work in Java Applet Runtime Settings for new Java Plug-In
JDK-6606282 : UI work in Java Applet Runtime Settings for new Java Plug-In

Details
Type:
Enhancement
Submit Date:
2007-09-18
Status:
Closed
Updated Date:
2010-09-17
Project Name:
JDK
Resolved Date:
2008-06-09
Component:
deploy
OS:
generic
Sub-Component:
deployment_toolkit
CPU:
generic
Priority:
P3
Resolution:
Fixed
Affected Versions:
6u5
Fixed Versions:
6u10 (b11)

Related Reports
Backport:
Relates:
Relates:
Relates:
Relates:
Relates:

Sub Tasks

Description
The UI associated with the Java Applet Runtime Settings dialog in the
Java Control Panel needs work.

At a minimum it needs to be extended to have the capabilities of the
similar dialog for the Java Application Runtime Settings button.
Finding a JRE, adding an entry, and removing an entry need to be
supported.

This is high priority for the new out-of-process Java Plug-In, which
can run an individual applet on a particular Java version just like
Java Web Start. Therefore better management of available JRE versions
for applets is urgently needed.

                                    

Comments
SUGGESTED FIX

http://sa.sfbay.sun.com/projects/deployment_data/6u10/6606282.0
                                     
2008-01-11
EVALUATION

Several changes were made to the Java Applet Runtime Settings dialog
to make it more useful in the context of the new Java Plug-In:

 - The "Enabled" checkbox, present in the Java Application Runtime
   Settings dialog, has been included. This is useful for being able
   to force a given applet which is explicitly requesting an older JRE
   to run on top of the current one, by disabling the older JRE in the
   Java Control Panel. This functionality was motivated by real-world
   applets: in particular, the uploader applet from the photo web site
   smugmug.com, which explicitly requests to run on 1.4 via the
   version attribute in the embed tag, but which we would like to be
   able to run on 1.6. By default, JREs available to the Java Plug-In
   are enabled. They are only disabled by explicit user action in the
   Java Control Panel.

 - The Add and Remove buttons have been included for all platforms,
   not just Unix platforms.

 - The Find button, present in the Java Application Runtime Settings
   dialog, has been included.

 - An option was added to the JreFindDialog and JreLocator to cause
   them to return the path to the JRE, which is what the new Java
   Plug-In wants, rather than the path to the javaw.exe executable
   contained within, which is what Java Web Start wants.

 - Based on review feedback, the find.intro resource used by the
   JreFindDialog was renamed to find.intro.javaws, and a new
   find.intro.jpi resource was added, which needs localization.

The new plug-in's JVMManager was also modified to pay attention to the
"enabled" bit, but to forbid the disabling of all JREs, which would
prevent launching any applets.

These changes have been tested so far on Windows with a manual
Multiple JRE applet test and all of the functionality has been
verified. This is a late checkin for the current build, but one we
strongly want to get in now so we don't add this in the beta candidate
build, but have one build to let it soak and to do localization.
                                     
2008-01-11



Hardware and Software, Engineered to Work Together