Oracle has announced the end of Java Plugin for Java 9 planned by the end of 2016.
https://blogs.oracle.com/java-platform- ... lugin_free
It means that applets won't be supported in any browser for Java 9 (and higher) because applets rely on Java Plugin. However, it will continue to be supported for Java 8 only until EOL (in 2017 or 2018).
Does it mean Java is dead? No, only Java Plugin will die but we still have Java Web Start as alternative to run/deploy Java applications automatically from any browser.
JFileUpload supports Java Web Start deployment since a few years. A working sample is already available in documentation/samples/webstart folder. We're going to add more samples in our online demos.
But what should we know for a Java Plugin (Applet) vs WebStart deployment:
- Both require Java installed on client-side (desktop/laptop)
- Both run in secured sandbox (need signed code to access local resources)
- Applet is displayed inside browser, WebStart not (in external window)
- WebStart application is launched from browser with a link (.jnlp) in HTML page
- WebStart does not require any JavaScript or Applet tag in browser
- Parameters for WebStart application are setup within the .jlnp file
- File(s) Drag&Drop, copy/paste works with WebStart application
- Redirect with URL in browser after upload basically works
- JSAPI cannot work as WebStart runs outside browser
Java Plugin vs Web StartRe: Java Plugin vs Web StartHere is a sample of JNLP file. Notice the parameter width/height to setup WebStart window size. Modified resources are under a i18n_test.properties. If you pass variables in post parameter, they must be URL encoded.
Code: Select all
|