-
Bug
-
Resolution: Fixed
-
P3
-
6u10
-
b01
-
generic, x86
-
generic, linux, windows
-
Not verified
A customer (see Comments for details) indicates that he has tried to specify a file assocation for a JNLP-launched applet which he then drags out of the browser to the desktop. The file association is correctly produced, but when a file of that type is double-clicked, there is currently no way for the applet to discover what file was selected, because it does not have a main() method and we are not doing anything to pass along the command line arguments to the applet. A mechanism for doing this will need to be created and documented.
We need to provide some way of exposing the command-line arguments to the given applet. A reasonable way might be to define the applet parameter
_numArgs
as containing an integer (in the form of a String) indicating the number of arguments, and
_arg0
_arg1
...
_arg(n)
where n == _numArgs - 1 as the incoming command line arguments. This information would need to be set up by the JNLP2Viewer class before launching the applet. Also, the underlying launcher will need to pass up the additional command line arguments, and the argument checking in JNLP2Viewer will need to be adjusted.
We need to provide some way of exposing the command-line arguments to the given applet. A reasonable way might be to define the applet parameter
_numArgs
as containing an integer (in the form of a String) indicating the number of arguments, and
_arg0
_arg1
...
_arg(n)
where n == _numArgs - 1 as the incoming command line arguments. This information would need to be set up by the JNLP2Viewer class before launching the applet. Also, the underlying launcher will need to pass up the additional command line arguments, and the argument checking in JNLP2Viewer will need to be adjusted.
- duplicates
-
JDK-6707727 SingletonInstanceService Applet creates as many VMs when invoked from Desktop Shortcut.
- Closed
-
JDK-6706370 DragExample.jnlp won't run in 6u10 plugin release notes
- Closed
- relates to
-
JDK-6777695 TCK jnlp test jnlp_file/appletDesc/index.html#misc fails with NPE starting 6u12 b01
- Closed
-
JDK-6783125 Plugin2: DND shortcut launch throw exceptions if applet JNLP href has no codebase
- Closed
-
JDK-6781554 JNLP Applet is not honoring the title specified in JNLP file from 6u12
- Closed