Java Plugin vs Web Start

Upload core product.

Java Plugin vs Web Start

Postby support » Fri Jan 29, 2016 7:04 pm

Oracle has announced the end of Java Plugin for Java 9 planned by the end of 2016. ... 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

WebStart launch example
(17.73 KiB) Not downloaded yet
User avatar
Posts: 1501
Joined: Sun Jan 27, 2008 6:19 pm

Re: Java Plugin vs Web Start

Postby support » Tue Feb 09, 2016 6:24 pm

Here is a sample of JNLP file. Notice the parameter width/height to setup WebStart window size. Modified resources are under a If you pass variables in post parameter, they must be URL encoded.

Code: Select all
<?xml version="1.0" encoding="utf-8"?>
<jnlp spec="1.0+" codebase="http://localhost:8080/upload/" href="webstart_http.jnlp">
    <homepage href=""/>
    <description>Java File Uploader</description>   
    <j2se version="1.4 1.5 1.6 1.7 1.8 1.9"/>
    <jar href="lib/jfileupload.jar" main="true" download="eager"/>
    <jar href="lib/chttpclient.jar"/>
    <jar href="lib/httpimpl.jar"/>
    <jar href="lib/clogging.jar"/>

  <application-desc main-class="jfileupload.upload.client.MApplication"> 
User avatar
Posts: 1501
Joined: Sun Jan 27, 2008 6:19 pm

Return to JFileUpload


Sitemap | Privacy Statement | Java and all Java-based marks are trademarks or registered trademarks of Sun Microsystems, Inc.
in the U.S. and other countries. All other company and/or product names are the property of their respective owners.