What is the alternative to java applet applets?
Asked Answered
B

2

6

I am working on a web application, in which we have one client applet application that will check the certificate is installed on the client's machine or not.

But you all know Mozilla will stop to support applets very soon.

Can anyone suggest what is an alternate option for doing the same?

Bennir answered 4/8, 2016 at 12:59 Comment(0)
S
4

Java Webstart

The other answer is out of date. The Java WebStart (JWS) implementation in the OpenJDK codebase was deprecated in Java 9 and removed entirely in Java 11. This affects all Java distros that are based on OpenJDK ... including the Oracle Java distros.

However, all is not lost.

  1. You can still use JWS in releases prior to Java 11. Java 8 is still supported by Oracle, and by other vendors.
  2. A company (Karakun AG) treated the removal of JWS in Java 11 as a business opportunity, and created an open source replacement for JWS in the form of OpenWebStart. There is a feature table that documents the features of the JWS specification that are supported. OpenWebStart is available as a community edition (no support) or with different levels of paid support.

But note:

  1. OpenWebStart does not support applets, and according to the OpenWebStart FAQ, they have no intention of supporting them.

  2. Java Webstart didn't support applets either. It was always an alternative deployment mechanism rather than a way to run code in the user's web browser.

The Real Answer - Rewrite your code

If you are still looking for a direct replacement for applets, forget it. There isn't one. Applets are dead technology. They were terminally ill for decades, and the death knell came in 2016 when Oracle announced that they would be deprecated and withdrawn.

  • If you want a way to deploy and launch a conventional Java desktop application (e.g. JavaFX or Swing + AWT) then OpenWebStart is a good option. However, the user does need to download and install OpenWebStart to bootstrap the process.

  • Other alternatives supported by Oracle / OpenJDK are to use jlink or jpackage to produce (respectively) a custom JRE or a native executable for your application. These need to be deployed and updated by conventional means.

  • If you have an application that needs to run in your users' web browser, you should look at recoding it in Javascript. Java is no longer a sensible option for this kind of application.

All of the above require you to rewrite your old applet code. TINA.

Systemize answered 30/10, 2022 at 1:47 Comment(3)
Another alternative would be to use JavaFX with JPro. jpro.oneAfteryears
Yea ... but it is a proprietary (closed source) product. Also, it appears to entail running much of the app code back on a server rather than on the user's machine. (I couldn't find a clear technical description of how JPro works in the documentation ... so that might be wrong.)Systemize
You are right about the technical background of JPro. (It actually deserves the name server side rendering in contrast to other techologies :-)Afteryears
R
0

A good alternative to applets is Java Web Start. If the client has java installed and can run applets then this will work too.

Resurrectionism answered 4/8, 2016 at 13:4 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.