3

Web ページ経由でアプレットを実行しようとしていますが、実行すると次のエラーが表示されます。

java.lang.reflect.InvocationTargeException
       at com.sun.deploy.util.DeployAWTUtil.invokeAndWait(DeployAWTUtil.java:116)
       at sun.plugin2.applet.Plugin2Manager.runOnEDT(Plugin2Manager.java:3520)
       at sun.plugin2.applet.Plugin2Manager.createApplet(Plugin2Manager.java:3051)
       at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Plugin2Manager.java:1497)
       at java.lang.Thread.run(Thread.java:662)
Caused by:java.lang.SecurityExcption: attempted to open sandboxed jar file :/home/daniel/workspace/project/jars/jogl/jogl.all.jar as a Trusted-Library
       at com.sun.deploy.security.CPCallbackHandlers$ParentElement.checkResources(CPCallbackHandler.java:358)
       at com.sun.deploy.security.DeployURLClassPath$JarLoader.checkResource(DeployURLClassPath:852)
       ....more stuff I don't want to have to retype but I can if necessary

理由がわかりません。アプレットでいくつかの jar を取得しようとしていますが、問題を引き起こしているのはこれだけです (少なくとも現時点では)。この同様の質問を見ましたが、追加のライブラリがないため (とにかく署名していないapplet.classがカウントされない限り)、これはここには当てはまらないようです。Mixing Signed and Unsigned Codeを見ましたが、「有効にする - 必要に応じて警告を表示する」がクリックされ、「Trusted-Library: true」が MANAFEST ファイルにあり、firefox 3.6.24 を実行しています (Linux マシンに固有)私が持っている)。助けていただければ幸いです。

jogl.all.jar の MANAFEST ファイル:

Manifer-Version: 1.0
Ant-Version: Apache Ant 1.8.2
Created-By: 1.6.0_24-b07 (Sun Microsystems Inc.)
Specification-Title: Java Bindings for OpenGL API Specification
Specification-Version: 2.0
Specificaiton-Vender: JogAMp Community
Implementation-Title: Java Bindings for OpenGL Runtime Environment
Implementation-Version: 2.0-b23-20110303
Implementation-Branch: rc
Implementation-Commit: bcf5d6ac871a29398b441df617923d3dd2cf35c1
Implementation-Vendor: JogAmp Community
Implementation-URL: http://jogamo.org/
Extension-Name: javax.media.opengl
Implementation-Vendor-Id: com.jogamp
Trusted-Library: true
4

2 に答える 2

3

jar に署名していないように見えます (したがって、「サンドボックス化された」ビット)。

信頼されていないコードでも安全に使用できる信頼された Java コードを作成することは、非常に困難です。

于 2012-12-26T19:11:51.737 に答える