将 JavaApplet 替换为 Java Web Start 应用程序

Replacing JavaApplet with Java Web Start Application

我在我的网页中使用 JavaApplet,现在我正在用 Java Web Start 应用程序替换 JavaApplet,我在 Java我调用 Java 方法的脚本是这样的:int numOfSomething = myAppletID.getNumofSomething();,但我不能在 Java Web Start 中执行此操作,我该如何解决这个问题?

Java无法使用 Java Web Start 进行脚本通信。

来自Migrating Java Applets to Java Web Start Applications

A Java Web Start application does not run within the web browser. So if your applet has any dependency on the browser (for example, Java to JavaScript / JavaScript to Java communications by means of the browser), the communication code will no longer work. The APIs that are affected include: