我正在使用一個JApplet,它具有swing組件,事件處理由AWT監聽器完成。我的小程序是好的,當我在applet瀏覽器上運行,但是當我在瀏覽器中運行它,它不顯示了僅在頂配的消息空白空間:Applet不會在瀏覽器中顯示
Error, Click for details
哪裏可能是問題,怎麼可能我解決它?
堆棧跟蹤爲:
java.lang.ClassNotFoundException: AudioApplet.class
at sun.plugin2.applet.Applet2ClassLoader.findClass(Unknown Source)
at sun.plugin2.applet.Plugin2ClassLoader.loadClass0(Unknown Source)
at sun.plugin2.applet.Plugin2ClassLoader.loadClass(Unknown Source)
at sun.plugin2.applet.Plugin2ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.plugin2.applet.Plugin2ClassLoader.loadCode(Unknown Source)
at sun.plugin2.applet.Plugin2Manager.initAppletAdapter(Unknown Source)
at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
這裏是applet標記我用來嵌入我的applet插入HTML
<applet code="AudioApplet.class" width="700" height="700">
Java applet that draws animated bubbles.
</applet>
mostlikely你有異常錯誤的小程序 – jondinham
重新檢查HTML語法 – Mordechai
檢查JVM控制檯日誌 – jondinham