kerro
2007-03-21 15:09:26 UTC
最近開始學習用Applet,書本上的範例都可以成功載入
可是改用自己的程式載入就會失敗,查詢主控台的結果說是無法創設class檔
可是java程式本身我已經編譯過了,google查詢錯誤訊息也查不到相關資料
想請各位指點個方向,感謝
附上錯誤訊息:
載入︰無法創設 readxml.class。
java.lang.InstantiationException: readxml
at java.lang.Class.newInstance0(Unknown Source)
at java.lang.Class.newInstance(Unknown Source)
at sun.applet.AppletPanel.createApplet(Unknown Source)
at sun.plugin.AppletViewer.createApplet(Unknown Source)
at sun.applet.AppletPanel.runLoader(Unknown Source)
at sun.applet.AppletPanel.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Exception in thread "Thread-4" java.lang.NullPointerException
at sun.plugin.util.GrayBoxPainter.showLoadingError(Unknown Source)
at sun.plugin.AppletViewer.showAppletException(Unknown Source)
at sun.applet.AppletPanel.runLoader(Unknown Source)
at sun.applet.AppletPanel.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 220.132.58.82
可是改用自己的程式載入就會失敗,查詢主控台的結果說是無法創設class檔
可是java程式本身我已經編譯過了,google查詢錯誤訊息也查不到相關資料
想請各位指點個方向,感謝
附上錯誤訊息:
載入︰無法創設 readxml.class。
java.lang.InstantiationException: readxml
at java.lang.Class.newInstance0(Unknown Source)
at java.lang.Class.newInstance(Unknown Source)
at sun.applet.AppletPanel.createApplet(Unknown Source)
at sun.plugin.AppletViewer.createApplet(Unknown Source)
at sun.applet.AppletPanel.runLoader(Unknown Source)
at sun.applet.AppletPanel.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Exception in thread "Thread-4" java.lang.NullPointerException
at sun.plugin.util.GrayBoxPainter.showLoadingError(Unknown Source)
at sun.plugin.AppletViewer.showAppletException(Unknown Source)
at sun.applet.AppletPanel.runLoader(Unknown Source)
at sun.applet.AppletPanel.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 220.132.58.82