我有一個小程序(小程序,而不是JApplet),它有很多類組織到包中,包括小程序本身。我到處尋找如何使用該jar作爲applet。它是不可運行,並有一個清單文件像這樣:如何在包中使用小程序
Manifest-Version: 1.0
Class-Path: AppletSource.jar
我把它放在一個html(Game.html),因爲這樣的:
<applet code="Game/Game.class" archive="Game.jar" width=800 height=600>
Your browser needs JAVA!!!
</applet>
正如你所看到的類被稱爲遊戲.class,Package Game和jar Game.jar。 清單是在Game.jar/META-INF
當我使用appletviewer Game.html
我得到一個錯誤(java.security.AccessControlException:拒絕訪問),如果我打開的.html,我收到了ClassNotFoundException: Game.Game.class
。我能做什麼?
你有一個名爲遊戲包,其中包含Game.class? – rooftop 2012-02-16 22:32:10
嘗試用[Appleteer](http://pscode.org/appleteer/)打開它,它會執行更多檢查並生成更詳細的輸出。 – 2012-02-17 04:22:00