Continue download of Applet and WebStart in background
One of the new feature of the consumer JRE will be the possibility to run an application even if you don't have at the start-up time all the classes available.
Wouldn't it be nice to have this feature for applets and webstart applications?
What does that means:
- You need to specify multiple jar in the archive argument of the applet.
- The code is executed as soon as the Jar containing classes is available.
- Much smaller download -> faster start-up
- Possibility to include more libraries
- No new API or changes to the language needed
What can it be used for:
- Have a small applet displaying a custom wait for loading and then execute the application
- Use libraries that most of the time are not needed at start-up time such as JavaHelp, look and feels,
Ant, commons-http, commons-network, BeanShell, SVG libraries, Flying saucer
- Show the game options and choose level while downloading Java 3D or Java FX.
- Have options, print preview, codec, plug-ins downloaded in background
All these libraries are quite likely excluded from applets because of their download size.
What are the challenges:
- Class.getResource() and Class.getResourceAsStream() especially with ResourceBundle when the resource is not found.
- Change the Applet/WebStart classloader to use this new feature
- Get it in the Consumer JRE
- Signed applet suddenly calling an unsigned library
Would you like me to write an RFE for this?