Deepti
Deepti

Reputation: 85

Migrating Applet application to Java 11

I have a application built on Java Applets, Swing and AWT. I want to migrate the source code to Java 11.

Java 11 Applets will not be supported, and even JavaWebStart is being removed.

So I have below questions 1) how should I migrate my application? 2) Will the existing application with applet code work in Java11?

Example: There is a applet embedded in a webpage, which gets downloaded on client machine to fetch client details like IP, Device name etc. After fetching the required details, it calls a servlet deployed in weblogic server which saves this information into Database.

Upvotes: 0

Views: 4269

Answers (2)

Hendrik Ebbers
Hendrik Ebbers

Reputation: 2600

About WebStart: One solution might be the WebStart replacement that Karakun is currently working on: https://dev.karakun.com/webstart/

About Applet: Actually I would say that there simply will be no way to support Applets starting with Java 11. So the best solution would be to migrate applets to a standalone application. Here you can have a look at the webstart based solution I linked on the top or create a native build with a bundled Java runtime. Here install4J (https://www.ej-technologies.com/products/install4j/overview.html) is the solution that I prefer at the moment.

Upvotes: 1

wumpz
wumpz

Reputation: 9201

You have to migrate your application to a "normal" non Applet desktop application. All applet code will be removed from jdk and cannot be run from a browser (all / most dropped support for applets).

WebStart was til now the valid and proposed alternative. But now it is deprecated as well. To get a WebStart like behavior, like updates, you should change your deployment process, e.g. using one of these tools:

Upvotes: 4

Related Questions