Java 11 下的 JavaApplet / Edge(无 Oracle)

发布于 2025-01-16 22:22:55 字数 369 浏览 4 评论 0原文

必须运行一些非常古老的遗留Applet。 Applet原来使用的是JDK 1.4和IE。新系统是Edge和OpenJDK 11或更高版本。 在旧系统中,我们使用Oracle JDK 8,它实现了IE插件(Java插件11.321.2)。网页(BlackBox)上有一个启动“应用程序”的链接。任务管理器显示 p2launcher.exe(Java(TM) Web 启动器)。 我真的不知道如何摆脱Oracle。

现在我想到了 OpenWebStart 但没有 JNLP 文件。或者构建一些 Wrapper 来加载 Applet,但这并不那么容易,因为 applet 以某种方式与网页中的文档进行交互。

那么是否有人有好主意让旧的 JavaApplet 在 Edge / Java 11+ 上运行?

Have to get some very old legacy Applet Running. The Applet original used JDK 1.4 and IE. The new system is Edge and OpenJDK 11 or higher.
In the old System, we used Oracle JDK 8 which implements an IE Plugin (Java Plug-in 11.321.2). On the Webpage (BlackBox) is a Link to start the "App". The Task Manager shows p2launcher.exe (Java(TM) Web Launcher).
I don't really know how to get rid of Oracle here.

By now I thought about OpenWebStart but there is no JNLP File. Or to build some Wrapper to load the Applet, but that's not so easy because the applet somehow interacts with the document from the webpage.

So is there someone with a good idea to get an old JavaApplet to run on Edge / Java 11+?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

策马西风 2025-01-23 22:22:55

请考虑使用我们的 CheerpJ Applet Runner 扩展程序,该扩展程序适用于 Chrome边缘

全面披露:我是公司的首席技术官,负责维护 CheerpJ 技术的扩展和领导开发。

该扩展可免费用于公共互联网上的非商业用途。任何内部网站或企业使用都需要许可证。

如果有兴趣,请联系

Please consider using our CheerpJ Applet Runner extension, available both for Chrome and Edge.

Full disclosure: I am CTO of the company maintaining the extension and lead dev of the CheerpJ technology.

The extension is free for non-commercial use on the public internet. For any internal website or enterprise use a license is required.

Please get in touch if interested.

千仐 2025-01-23 22:22:55
  1. 编写jnlp文件
  2. 安装Azul IcedTeaWeb
  3. 配置部署jre

1.这很大程度上取决于要替换的小程序。以下是示例:


    <jnlp spec="1.5+" xmlns="http://www.w3.org/1999/xhtml" codebase="*applet origin*" href="file:///C:/Program Files/JNLP/myJnlpFile.jnlp">
      <information>
        <title>Some title</title>
        <vendor>some vendor</vendor>
        <description>some Description</description>
        <homepage href="http://*applet url*"></homepage>
        <offline-allowed/>
      </information>
      <security>
        <all-permissions/>
      </security>
      <resources>
        <j2se version="1.3+"></j2se>
            <jar href="http://*applet URL*/some.jar" download="eager" main="true"></jar> <!-- this can be found in the original applet / page code -->
            <jar href="http://*applet URL*/another.jar" download="eager"></jar>
      </resources>
      <applet-desc 
        name="Some name" 
        main-class="myAppletMainClass" 
        width="1000" 
        height="800"
        align="baseline">
                <!-- this is based on the Applets params, simply some name and value pairs -->
                <param name="code" value="myAppletMainClass">
                <param name="archive" value="http://*applet URL*/some.jar"> 
      </applet-desc>
    </jnlp>

  1. 下载并安装(安装过程中未进行任何更改):Azul IcedTeaWeb 下载< /a>
  2. cmd "C:\Program Files\IcedTeaWeb\WebStart\bin\itweb-settings.exe" -headless 设置deployment.jre.dir "C:\Program Files\Java\zulu8"
    (是的,这不是我在问题中提到的 Java 11,但 Azul 仍然支持到 2030 年,并且它仅用于此应用程序,而不是整个系统)

这就是它对我的工作方式。

  1. Write a jnlp File
  2. Install Azul IcedTeaWeb
  3. Configure the deployment jre

1.This is heavily based on the applet to be replaced. Here is an example:


    <jnlp spec="1.5+" xmlns="http://www.w3.org/1999/xhtml" codebase="*applet origin*" href="file:///C:/Program Files/JNLP/myJnlpFile.jnlp">
      <information>
        <title>Some title</title>
        <vendor>some vendor</vendor>
        <description>some Description</description>
        <homepage href="http://*applet url*"></homepage>
        <offline-allowed/>
      </information>
      <security>
        <all-permissions/>
      </security>
      <resources>
        <j2se version="1.3+"></j2se>
            <jar href="http://*applet URL*/some.jar" download="eager" main="true"></jar> <!-- this can be found in the original applet / page code -->
            <jar href="http://*applet URL*/another.jar" download="eager"></jar>
      </resources>
      <applet-desc 
        name="Some name" 
        main-class="myAppletMainClass" 
        width="1000" 
        height="800"
        align="baseline">
                <!-- this is based on the Applets params, simply some name and value pairs -->
                <param name="code" value="myAppletMainClass">
                <param name="archive" value="http://*applet URL*/some.jar"> 
      </applet-desc>
    </jnlp>

  1. Download and install (nothing changed during installation): Azul IcedTeaWeb Download
  2. cmd "C:\Program Files\IcedTeaWeb\WebStart\bin\itweb-settings.exe" -headless set deployment.jre.dir "C:\Program Files\Java\zulu8"
    (yes thats not Java 11 like I mentioned in the question, but is still supported by Azul until 2030 and it is only used for this application and not the whole system)

Thats how it worked for me.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文