United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
JDK-7085020 : applets and fx-apps run thru webstart will not relaunch for jnlp. and javaws. properties

Details
Type:
Bug
Submit Date:
2011-08-30
Status:
Resolved
Updated Date:
2013-12-25
Project Name:
JDK
Resolved Date:
2013-12-25
Component:
deploy
OS:
generic
Sub-Component:
webstart
CPU:
generic
Priority:
P3
Resolution:
Fixed
Affected Versions:
7-client
Fixed Versions:
7u2

Related Reports
Backport:

Sub Tasks

Description
when testing for relaunch in com.sun.deploy.util.JVMParameters.isExcluded() - 
special exemption is made when Environment.isJavaWebStart() is true.
(Because AppPolicy.java will add the properties later) but in the case of webstart launching an FX app (or an applet), we switch over to using plugins code (and it's AppPolicy), but leave Environment.isJavaWebStart() true 

we should call Environment.setEnvironmentType(Environment.ENV_PLUGIN);
in com.sun.javaws.Launcher.executeApplet() before we switch over to plugin code.

                                    

Comments
regression_test_src:
http://sqe-hg.us.oracle.com/hg/index.cgi/testbase/javase/functional/8/deployment2/file/60074f9d7f91/new_framework/tests/javafx/fxfeaturesTest/src/JavaFXFeaturesTest.java
                                     
2013-12-25
EVALUATION

The additional and possibly the major cause was the flow of Launcher.launchAppUsingAppletLifecycle() which only check for match JMVParameters if checking for JavaFx support failed.
Due to risk involve, for 7-client we only fix this cause.  The exclusion fix will be done in separate CR.
                                     
2011-09-06
EVALUATION

yes - this check in JVMParameters needs to fail for applet or fxapp - alternative way to address is to check for applet of fx app in isExcluded - but that would be difficult since LaunchDesc is not available.
                                     
2011-08-30
EVALUATION

The suggestion in the description is insufficient , since the relaunch check is done in advance of launching thru plugin, the Environment setting would need to be made sooner, indication what run path you expect to be using.
Furthermore - changing this will have the effect of changing the wording of some dialogs from "Application" to "Applet", so will solve another way.
                                     
2011-08-30



Hardware and Software, Engineered to Work Together