Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/java/327.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
正在加载Java小程序。。。网络:找不到缓存项_Java_Applet - Fatal编程技术网

正在加载Java小程序。。。网络:找不到缓存项

正在加载Java小程序。。。网络:找不到缓存项,java,applet,Java,Applet,我已经用Applet处理了所有的东西。我在服务器上发布了小程序。所有机器上的IE都运行良好。但它并没有在firefox上运行。下面是相同的堆栈跟踪。请给我同样的建议 小程序代码: public void init() { showInst(); } public void showInst() { Inst inst = new ANTInst(); JFrame app = new JFrame("Test App"); app.g

我已经用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>

您知道Firefox正在运行吗

编辑:
显然,FF Java 6更新了10(或更高版本)才能正常工作。

我做了这些更改,之后在搜索了很多次之后,它对我来说运行良好

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

    -Djava.net.preferIPv4Stack=true
    

在我的机器上的firefox上运行的小程序,但在另一台有java upadate和插件的机器上运行的小程序都已更新,仍然存在问题。我添加了屏幕截图java安装和插件在我原来的问题解决了。但我仍然在寻找为什么firefox有时会在小程序远程加载时停止响应(我的意思是在一段时间后崩溃),是小程序问题还是JVM故障?
java.security.AccessControlException:access denied(java.lang.RuntimePermission exitVM.0)
为什么小程序会调用
System.exit(n)
。(前几天我没有问过你吗?)init()方法的代码是什么?
init()
&
start()
方法的代码?init()函数的代码一直是原始问题,请帮助,因为同一个小程序在firefox和IE上运行在我的机器上,而不是在我的coleagues机器上运行。我们在同一个网络上,安装了相同的Java和JRE。我想在所有机器上的多个浏览器上运行小程序回答第一个注释:AccesscontrolException可能是一个带有权限的问题,应该在java.policy文件中给出权限。退出(0)用于关闭小程序。
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]