5

Google has recently announced their intentions to remove client-side Java support from Chrome in the near future. I, a Java developer by nature, have built nearly all of my web-based applications on top of some form of Java.

As such, I am looking for a workaround for Chrome's discontinuation of Java support, without having to rewrite all of my client-side web apps from the ground-up in another language.

Furthermore, I'm searching for a workaround which does not require Chrome's built-in NPAPI workarounds, as I need basic users to be able to continue to use the applets as they are.

dimo414
  • 47,227
  • 18
  • 148
  • 244
SnazzyJava
  • 87
  • 12
  • 6
    *Me, a Java developer by nature, have built nearly all of my web-based applications on top of some form of Java.* do you mean you're distributing your applications through applets? If you mean you develop Java server based apps, then you should not worry about. – Luiggi Mendoza Apr 17 '15 at 22:11
  • Are you talking about the server side of apps (which will be fine) or the client side? – durron597 Apr 17 '15 at 22:15
  • I'm referring to client-side Java applets, sorry for the confusion. – SnazzyJava Apr 18 '15 at 12:37
  • I too have some legacy java applets that are used by paying customers, that do not want to change, just because google thinks they should. I can ask them to change browsers, but I'd rather not. – Gerry Apr 20 '15 at 16:26
  • Ultimately you should rewrite you client side code to run natively in the browser. – bhspencer Jun 13 '15 at 17:21

1 Answers1

3

The best option I'm aware of is Java Web Start (tutorial), which doesn't run in browser but does allow users to easily run a Java application you serve from a website. Oracle provides some documentation on how to migrate to JWS, but the gist is to simply replace the <applet> tags with a link to a .jnlp file with the same information the <applet> tag had. You may have to tweak Chrome's application defaults as well.

There is also the Google Web Toolkit, which isn't for applets, but does let you write Java that compiles into JavaScript.

If your applets are more integrated into the browser, unfortunately you may not be able to keep using Java. Chromium does offer some alternatives on their NPAPI deprecation page, but they're not pretty. Options include HTML5/WebGL, WebRTC, NaCL, or Chrome Extensions. The Chrome Experiments site is worth browsing if migrating off of Java becomes your best option.

Oracle's official recommendation, however, is to avoid Chrome. That's pretty heavy-handed, and won't work for most website owners, but it's worth mentioning.

dimo414
  • 47,227
  • 18
  • 148
  • 244
  • 1
    In addition to Chrome, I hear IE is set to drop support for applets in Windows 10.. – Andrew Thompson Aug 04 '15 at 21:06
  • Add Mozilla to the set of browsers who are killing Java Applet support (end of 2016): http://venturebeat.com/2015/10/08/mozilla-firefox-will-drop-support-for-npapi-plugins-by-the-end-of-2016-but-will-keep-flash-around/ – Fuhrmanator Dec 14 '15 at 22:00