加载Java Applet ...网络:找不到缓存条目

时间:2012-01-14 08:17:26

标签: java applet

我已经使用Applet完成了所有内容。我在服务器上发布了applet。它在所有机器上从IE运行良好。但它不是在Firefox上运行。下面是相同的堆栈跟踪。请指教。

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>

我已检查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]

enter image description here

enter image description here

2 个答案:

答案 0 :(得分:1)

checked是否{4}}在Firefox中有效吗?

编辑: 显然,FF Java plugin Java 6 Update 10(或更高版本)可以工作。

答案 1 :(得分:0)

我做了这些修改,之后在搜索了很多之后它对我来说很好。

转到

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

     
    -Djava.net.preferIPv4Stack=true