正在加载 Java Applet ...网络:未找到缓存条目

发布于 2024-12-26 13:18:10 字数 3052 浏览 2 评论 0原文

我已经用Applet 完成了所有的事情。我在服务器上发布了小程序。它在所有机器上从 IE 运行良好。但它不能在 Firefox 上运行。下面是相同的堆栈跟踪。请提供同样的建议。

小程序代码:

 public void init()
    {
showInst();
}
public void showInst()
    {

        Inst inst = new ANTInst();
     JFrame app = new JFrame("Test App");
        app.getContentPane().add(instruction, "Center");
        app.setResizable(false);
        instruction.setFrameHandler(app);
        app.show();

   }
basic: Loading Java Applet ...
network: Cache entry not found [url: http://www.attentiontranslator.com/ant_test/, version: null]
network: Cache entry not found [url: http://www.attentiontranslator.com/ant_test/ANT.class, version: null]


<applet  code=ANT.class width=300 height=300>
</applet>

我已检查 java 是否已安装更新版本 请在下面找到更多日志

security: property package.access value sun.,com.sun.xml.internal.ws.,com.sun.xml.internal.bind.,com.sun.imageio.
security: property package.access new value sun.,com.sun.xml.internal.ws.,com.sun.xml.internal.bind.,com.sun.imageio.,com.sun.javaws
security: property package.access value sun.,com.sun.xml.internal.ws.,com.sun.xml.internal.bind.,com.sun.imageio.,com.sun.javaws
security: property package.access new value sun.,com.sun.xml.internal.ws.,com.sun.xml.internal.bind.,com.sun.imageio.,com.sun.javaws,com.sun.deploy
security: property package.access value sun.,com.sun.xml.internal.ws.,com.sun.xml.internal.bind.,com.sun.imageio.,com.sun.javaws,com.sun.deploy
security: property package.access new value sun.,com.sun.xml.internal.ws.,com.sun.xml.internal.bind.,com.sun.imageio.,com.sun.javaws,com.sun.deploy,com.sun.jnlp
security: property package.definition value null
security: property package.definition new value com.sun.javaws
security: property package.definition value com.sun.javaws
security: property package.definition new value com.sun.javaws,com.sun.deploy
security: property package.definition value com.sun.javaws,com.sun.deploy
security: property package.definition new value com.sun.javaws,com.sun.deploy,com.sun.jnlp
security: property package.access value sun.,com.sun.xml.internal.ws.,com.sun.xml.internal.bind.,com.sun.imageio.,com.sun.javaws,com.sun.deploy,com.sun.jnlp
security: property package.access new value sun.,com.sun.xml.internal.ws.,com.sun.xml.internal.bind.,com.sun.imageio.,com.sun.javaws,com.sun.deploy,com.sun.jnlp,org.mozilla.jss
security: property package.definition value com.sun.javaws,com.sun.deploy,com.sun.jnlp
security: property package.definition new value com.sun.javaws,com.sun.deploy,com.sun.jnlp,org.mozilla.jss
basic: Added progress listener: sun.plugin.util.GrayBoxPainter$GrayBoxProgressListener@13d93f4
basic: Loading Java Applet ...
network: Cache entry not found [url: http://www.attentiontranslator.com/ant_test/, version: null]
network: Cache entry not found [url: http://www.attentiontranslator.com/ant_test/ANT.class, version: null]

在此处输入图像描述

在此处输入图像描述

I have done with All stuff with Applet. I published the applet on the server. It is running fine from IE on all machines. But it is not running on firefox. Below is the stack trace for the same. Please advise for the same.

Code of Applet:

 public void init()
    {
showInst();
}
public void showInst()
    {

        Inst inst = new ANTInst();
     JFrame app = new JFrame("Test App");
        app.getContentPane().add(instruction, "Center");
        app.setResizable(false);
        instruction.setFrameHandler(app);
        app.show();

   }
basic: Loading Java Applet ...
network: Cache entry not found [url: http://www.attentiontranslator.com/ant_test/, version: null]
network: Cache entry not found [url: http://www.attentiontranslator.com/ant_test/ANT.class, version: null]


<applet  code=ANT.class width=300 height=300>
</applet>

I have check that java is installed with updated version
Please find more logs below

security: property package.access value sun.,com.sun.xml.internal.ws.,com.sun.xml.internal.bind.,com.sun.imageio.
security: property package.access new value sun.,com.sun.xml.internal.ws.,com.sun.xml.internal.bind.,com.sun.imageio.,com.sun.javaws
security: property package.access value sun.,com.sun.xml.internal.ws.,com.sun.xml.internal.bind.,com.sun.imageio.,com.sun.javaws
security: property package.access new value sun.,com.sun.xml.internal.ws.,com.sun.xml.internal.bind.,com.sun.imageio.,com.sun.javaws,com.sun.deploy
security: property package.access value sun.,com.sun.xml.internal.ws.,com.sun.xml.internal.bind.,com.sun.imageio.,com.sun.javaws,com.sun.deploy
security: property package.access new value sun.,com.sun.xml.internal.ws.,com.sun.xml.internal.bind.,com.sun.imageio.,com.sun.javaws,com.sun.deploy,com.sun.jnlp
security: property package.definition value null
security: property package.definition new value com.sun.javaws
security: property package.definition value com.sun.javaws
security: property package.definition new value com.sun.javaws,com.sun.deploy
security: property package.definition value com.sun.javaws,com.sun.deploy
security: property package.definition new value com.sun.javaws,com.sun.deploy,com.sun.jnlp
security: property package.access value sun.,com.sun.xml.internal.ws.,com.sun.xml.internal.bind.,com.sun.imageio.,com.sun.javaws,com.sun.deploy,com.sun.jnlp
security: property package.access new value sun.,com.sun.xml.internal.ws.,com.sun.xml.internal.bind.,com.sun.imageio.,com.sun.javaws,com.sun.deploy,com.sun.jnlp,org.mozilla.jss
security: property package.definition value com.sun.javaws,com.sun.deploy,com.sun.jnlp
security: property package.definition new value com.sun.javaws,com.sun.deploy,com.sun.jnlp,org.mozilla.jss
basic: Added progress listener: sun.plugin.util.GrayBoxPainter$GrayBoxProgressListener@13d93f4
basic: Loading Java Applet ...
network: Cache entry not found [url: http://www.attentiontranslator.com/ant_test/, version: null]
network: Cache entry not found [url: http://www.attentiontranslator.com/ant_test/ANT.class, version: null]

enter image description here

enter image description here

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

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

发布评论

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

评论(2

帝王念 2025-01-02 13:18:10

您是否检查 Java 插件 在 Firefox 中运行吗?

编辑:
显然,FF 需要 Java 6 Update 10(或更高版本)才能工作。

Have you checked that the Java plugin is working in Firefox?

Edit:
Apparently, FF requires Java 6 Update 10 (or above) to work.

在风中等你 2025-01-02 13:18:10

我做了这些改变,经过大量搜索后,它对我来说工作得很好。

转到

  • 控制面板
  • Java 控制面板
  • Java 选项卡视图
  • 在运行时参数中添加此行

    -Djava.net.preferIPv4Stack=true
    

I had made these changes and after that it was working fine for me after searching a lot.

Go to

  • Control panel
  • Java Control Panel
  • Java Tab View
  • IN run time parameters add this line

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