2012-01-14 330 views
0

我已经完成了Applet的所有内容。我在服务器上发布了小程序。它在所有机器上从IE运行良好。但它不在Firefox上运行。下面是相同的堆栈跟踪。请告知相同。正在加载Java Applet ... network:未找到高速缓存条目

小程序的代码:

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: [email protected] 
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

+0

'java.security .AccessControlException:访问被拒绝( java.lang.RuntimePermission exitVM.0)'为什么applet调用'System.exit(n)'。 (我有没有问过你呢?) – 2012-01-14 11:13:05

+0

init()'&'start()'方法的代码是什么? – 2012-01-14 11:14:42

+0

初始化()函数的代码已在原始问题 – Maneesh 2012-01-14 11:40:20

回答

1

有你checkedJava plugin在Firefox中工作?

编辑: 显然,FF requires Java 6 Update 10(或以上)的工作。

+0

Applet在我的机器上的Firefox上运行,但在其他机器上运行java upadate和插件都更新了,仍然有问题。我正在添加屏幕截图java安装和插件在我原来的问题 – Maneesh 2012-01-14 09:10:34

+0

问题得到解决。但我仍然在寻找为什么有时候firefox会在applet远程加载时停止响应(我的意思是有时会崩溃),它是applet问题还是JVM故障? – Maneesh 2012-01-15 16:51:25

0

我已经做了这些改变,之后,它搜索了很多工作正常。

转到

  • 控制面板
  • Java控制面板
  • 的Java卡视图
  • 在运行时的参数中加入这一行

    -Djava.net.preferIPv4Stack=true