Java Web start无法运行我的JAR文件

时间:2016-02-25 11:37:06

标签: java java-web-start jnlp japplet

我有以下jnlp文件:

<?xml version="1.0" encoding="utf-8"?> 
<jnlp spec="1.0+" codebase="http://etrdwebs01/RSA/folder1/folder2/">
<information>
    <title>Jnlp Testing</title>
    <vendor>My Company</vendor>
    <description>Testing JNLP</description>
</information>
<security>
    <all-permissions/>
</security>
<resources>
    <java version="1.6+"/>
    <jar href="MyJAR.jar"/>
</resources>
<applet-desc name="TEST_JAR" main-class="MYJAR.MainApplet" documentbase="http://etrdwebs01/RSA/folder1/folder2/" width="400" height="400">
</applet-desc>

问题如下:

  • 当代码库设置为上述值时,我在主类上得到了classNotFoundException,它位于名为MainApplet的MYJAR包中。
  • 如果我将代码库更改为&#34;。&#34;,我将获得权限被拒绝的异常,如下所示:
  

基本:异常:权限被拒绝:文件:/ C:/ Users / myuser / AppData / Local / Microsoft / Windows / Temporary Internet Files / Content.IE5 / 2FTY5X2G /。   ExitException [3] java.lang.SecurityException:Permission denied:file:/ C:/ Users / myuser / AppData / Local / Microsoft / Windows / Temporary Internet Files / Content.IE5 / 2FTY5X2G /       at sun.plugin2.applet.Plugin2Manager $ AppletExecutionRunnable.run(Unknown Source)       在java.lang.Thread.run(未知来源)   忽略异常:ExitException [3] java.lang.SecurityException:Permission denied:file:/ C:/ Users / myuser / AppData / Local / Microsoft / Windows / Temporary Internet Files / Content.IE5 / 2FTY5X2G /   cache:清理引用队列:file:/ C:/ Users / myuser / AppData / Local / Microsoft / Windows / Temporary Internet Files / Content.IE5 / 2FTY5X2G / MYJAR.jarjnlp   cache:deregisterReference:com.sun.deploy.cache.MemoryCache$CachedResourceReference@9c2651c6:3   cache:清理引用队列:file:/ C:/ Users / myuser / AppData / Local / Microsoft / Windows / Temporary Internet Files / Content.IE5 / 2FTY5X2G / MYJAR.jarjnlp   cache:deregisterReference:com.sun.deploy.cache.MemoryCache$CachedResourceReference@9c2651c6:2

我该如何解决这个问题????

0 个答案:

没有答案