0

我正在尝试使用以下命令启动 TopCoder 的 Applet

javaws ContestAppletProd7.2.jnlp

但是,我得到以下 StackTrace:

  net.sourceforge.jnlp.LaunchException: Fatal: Launch Error: Could not launch JNLP file. The application has not been initialized, for more information execute javaws/browser from the command line and send a bug report.
    at net.sourceforge.jnlp.Launcher.launchApplication(Launcher.java:582)
    at net.sourceforge.jnlp.Launcher$TgThread.run(Launcher.java:945)
Caused by: java.lang.reflect.InvocationTargetException
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:498)
    at net.sourceforge.jnlp.Launcher.launchApplication(Launcher.java:576)
    ... 1 more
Caused by: java.lang.SecurityException: class "com.topcoder.client.contestant.Coder"'s signer information does not match signer information of other classes in the same package
    at java.lang.ClassLoader.checkCerts(ClassLoader.java:891)
    at java.lang.ClassLoader.preDefineClass(ClassLoader.java:661)
    at java.lang.ClassLoader.defineClass(ClassLoader.java:754)
    at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
    at java.net.URLClassLoader.defineClass(URLClassLoader.java:473)
    at java.net.URLClassLoader.access$100(URLClassLoader.java:74)
    at java.net.URLClassLoader$1.run(URLClassLoader.java:369)
    at java.net.URLClassLoader$1.run(URLClassLoader.java:363)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:362)
    at net.sourceforge.jnlp.runtime.JNLPClassLoader.access$1701(JNLPClassLoader.java:105)
    at net.sourceforge.jnlp.runtime.JNLPClassLoader$5.run(JNLPClassLoader.java:1748)
    at net.sourceforge.jnlp.runtime.JNLPClassLoader$5.run(JNLPClassLoader.java:1745)
    at java.security.AccessController.doPrivileged(Native Method)
    at net.sourceforge.jnlp.runtime.JNLPClassLoader.findClass(JNLPClassLoader.java:1744)
    at net.sourceforge.jnlp.runtime.JNLPClassLoader.loadClassExt(JNLPClassLoader.java:1781)
    at net.sourceforge.jnlp.runtime.JNLPClassLoader.loadClass(JNLPClassLoader.java:1581)
    at java.lang.Class.getDeclaredMethods0(Native Method)
    at java.lang.Class.privateGetDeclaredMethods(Class.java:2701)
    at java.lang.Class.getDeclaredMethod(Class.java:2128)
    at java.awt.Component.isCoalesceEventsOverriden(Component.java:6224)
    at java.awt.Component.access$500(Component.java:186)
    at java.awt.Component$3.run(Component.java:6178)
    at java.awt.Component$3.run(Component.java:6176)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.awt.Component.checkCoalescing(Component.java:6175)
    at java.awt.Component.<init>(Component.java:6144)
    at java.awt.Container.<init>(Container.java:285)
    at java.awt.Panel.<init>(Panel.java:64)
    at java.awt.Panel.<init>(Panel.java:56)
    at java.applet.Applet.<init>(Applet.java:65)
    at javax.swing.JApplet.<init>(JApplet.java:131)
    at com.topcoder.client.contestApplet.ContestApplet.<init>(Unknown Source)
    at com.topcoder.client.contestApplet.runner.generic.main(Unknown Source)
    ... 6 more

java.lang.SecurityException是什么意思,在这种情况下我该如何解决?

4

1 回答 1

0

解决了这个问题!

就我而言,提供的 jnlp 文件带来了问题。相反,我使用了 quora 中建议的 topcoder jnlp 文件。这是链接topcoder jnlp

出现此表单的错误 **致命:应用程序错误:无法授予未签名 jar 的权限。**这是一个链接,可以帮助您解决未签名 jar 解决的问题

于 2022-01-09T22:41:45.890 回答