gpt4 book ai didi

java - JAR list 代码库不匹配

转载 作者:太空宇宙 更新时间:2023-11-04 15:09:35 25 4
gpt4 key购买 nike

我在 dropbox 中有一个小程序,在 droppages 中有一个链接。该小程序是自签名的。按照代码进行操作

Manifest-Version: 1.0
Ant-Version: Apache Ant 1.9.1
X-COMMENT: Main-Class will be added automatically by build
Class-Path: lib/GammingImage.jar lib/SolomonKingdomResources.jar
Permissions: all-permissions
Created-By: 1.7.0_45-b18 (Oracle Corporation)
Codebase: ...(etc)

jnlp

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<jnlp codebase="" href="launch.jnlp" spec="1.0+">
<information>
<title>SolomonKingdom</title>
<vendor>Usuario</vendor>
<homepage href=""/>
<description>SolomonKingdom</description>
<description kind="short">SolomonKingdom</description>
<offline-allowed/>
</information>
<update check="background"/>
<security>
<all-permissions/>
</security>
<resources>
<j2se java-vm-args="-Djava.security.policy=applet.policy" version="1.7+"/>
<jar href="SolomonKingdom.jar" main="true"/>
<jar href="lib/GammingImage.jar"/>
<jar href="lib/SolomonKingdomResources.jar"/>
</resources>
<applet-desc height="768" main-class="solomonkingdom.loginScreen" name="SolomonKingdom" width="1024">
</applet-desc>
</jnlp>

我也已经将异常(exception)添加到了 Java 面板

http://mygame.droppages.com/
https://dl.dropboxusercontent.com/u/78281142/launch.jnlp

还有更多...

java.lang.SecurityException: JAR manifest codebase mismatch for dl.dropboxusercontent.com/u/78281142/SolomonKingdom.jar
at com.sun.deploy.security.DeployManifestChecker.verify(Unknown Source)
at com.sun.deploy.security.DeployManifestChecker.verify(Unknown Source)
at com.sun.javaws.security.AppPolicy.grantUnrestrictedAccess(Unknown Source)
at com.sun.javaws.security.JNLPSignedResourcesHelper.checkSignedResourcesHelper(Unknown Source)
at com.sun.javaws.security.JNLPSignedResourcesHelper.checkSignedResources(Unknown Source)
at sun.plugin2.applet.JNLP2Manager.prepareLaunchFile(Unknown Source)
at sun.plugin2.applet.JNLP2Manager.loadJarFiles(Unknown Source)
at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)

有人可以说我需要做什么才能找到我做错的地方。谢谢!

最佳答案

对于该错误消息,最重要的部分是代码库属性。第一次尝试代码库:*在你的 list 文件中。欲了解更多详情,请参阅codebase-attribute-in-manifest-mismatch

关于java - JAR list 代码库不匹配,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21516154/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com