Applet/JNLP on Java 11 migration

爱⌒轻易说出口 提交于 2019-12-18 07:06:09

问题


I have an application that runs under Java/JNLP applet and I would like to migrate to Java 11.

As you know the applets and JNLP will disappear from Java 11.

The goal is to keep my old code and remove the packages that contain the applets, is it possible to do this migration without switching to a new technology?


回答1:


Yes and No.

Yes you can keep your java business logic and data handling code (presumed you did a clean separation of your application layers). E.g. just convert to a standalone java app and you're fine.

No, if you look for something to run in the webbrowser then you have to migrate to JavaScript/HTML/JSF/GWT... on the frontend and your java code running on the backend (JEE or Servlets ...).

Regarding the "No", it depends on what kind of application you have. A web application or a standalone application?

(1) For a web application you have to recreate the front end part (UI, communication with the server) but you can reuse parts of your logic.

(2) For a standalone application (using Swing/AWT/JavaFX ...) you can keep your code, just create a standalone app out of it. For distribution e.g. JavaFX offers an application packaging mechanism.

PS: The quickest way could be the conversion to the webstart technology however it was also deprecated and will be also be removed in future. So I would not use it.




回答2:


Finally, I chose Swing with Getdown which resembles JNLP.

A migration to a JEE/Spring solution would have completely modified the operation of my application and still take a lot of time. Tip: try it for yourself Getdown.




回答3:


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

Currently it is not clear when and how this will come since it is based on a kind of crowd-founding but since everyone can get involved (even with low cost) this is a very good possibility.



来源:https://stackoverflow.com/questions/51981336/applet-jnlp-on-java-11-migration

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!