Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#969 Could not find the main class

closed-works-for-me
nobody
None
5
2012-10-29
2012-07-11
Christoph Korn
No

Hello,

trying to create a Debian package of TripleA 1.6.1.0 there is this error after starting the game:
Exception in thread "main" java.lang.SecurityException: invalid SHA1 signature file digest for javax/activation/MimeType.class
at sun.security.util.SignatureFileVerifier.verifySection(SignatureFileVerifier.java:450)
at sun.security.util.SignatureFileVerifier.processImpl(SignatureFileVerifier.java:249)
at sun.security.util.SignatureFileVerifier.process(SignatureFileVerifier.java:193)
at java.util.jar.JarVerifier.processEntry(JarVerifier.java:251)
at java.util.jar.JarVerifier.update(JarVerifier.java:205)
at java.util.jar.JarFile.initializeVerifier(JarFile.java:338)
at java.util.jar.JarFile.getInputStream(JarFile.java:403)
at sun.misc.URLClassPath$JarLoader$2.getInputStream(URLClassPath.java:706)
at sun.misc.Resource.cachedInputStream(Resource.java:77)
at sun.misc.Resource.getByteBuffer(Resource.java:160)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:266)
at java.net.URLClassLoader.access$000(URLClassLoader.java:73)
at java.net.URLClassLoader$1.run(URLClassLoader.java:212)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:205)
at java.lang.ClassLoader.loadClass(ClassLoader.java:321)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294)
at java.lang.ClassLoader.loadClass(ClassLoader.java:266)
Could not find the main class: games.strategy.engine.framework.GameRunner. Program will exit.

There were same patches applied on the game. You can find them in the attached file.

Discussion

  • Christoph Korn
    Christoph Korn
    2012-07-11

     
    Attachments
  • Chris Duncan
    Chris Duncan
    2012-08-21

    I do not understand what your patches are trying to do.
    Could you explain what is happening?
    Do you still get this error when using 1.6.1.2 or later versions?

     
  • Chris Duncan
    Chris Duncan
    2012-08-21

    • status: open --> pending
     
  • Christoph Korn
    Christoph Korn
    2012-09-29

    • status: pending --> open
     
  • Christoph Korn
    Christoph Korn
    2012-09-29

    Hello,

    the patches are from the official triplea release in the Ubuntu repositories:
    http://packages.ubuntu.com/quantal/triplea

    The problem still exists in triplea 1.6.1.2

    Exception in thread "main" java.lang.SecurityException: invalid SHA1 signature file digest for javax/activation/MimeType.class
    at sun.security.util.SignatureFileVerifier.verifySection(SignatureFileVerifier.java:450)
    at sun.security.util.SignatureFileVerifier.processImpl(SignatureFileVerifier.java:249)
    at sun.security.util.SignatureFileVerifier.process(SignatureFileVerifier.java:193)
    at java.util.jar.JarVerifier.processEntry(JarVerifier.java:251)
    at java.util.jar.JarVerifier.update(JarVerifier.java:205)
    at java.util.jar.JarFile.initializeVerifier(JarFile.java:338)
    at java.util.jar.JarFile.getInputStream(JarFile.java:403)
    at sun.misc.URLClassPath$JarLoader$2.getInputStream(URLClassPath.java:706)
    at sun.misc.Resource.cachedInputStream(Resource.java:77)
    at sun.misc.Resource.getByteBuffer(Resource.java:160)
    at java.net.URLClassLoader.defineClass(URLClassLoader.java:266)
    at java.net.URLClassLoader.access$000(URLClassLoader.java:73)
    at java.net.URLClassLoader$1.run(URLClassLoader.java:212)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:205)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:321)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:266)
    Could not find the main class: games.strategy.engine.framework.GameRunner. Program will exit.

     
  • Christoph Korn
    Christoph Korn
    2012-09-29

    Hello again,

    the problem has been solved.
    Somehow this line in debian/rules caused the problems:
    export CLASSPATH=/usr/share/java/commons-httpclient.jar:/usr/share/java/commons-logging.jar:/usr/share/java/commons-codec.jar:/usr/share/java/substance.jar:/usr/share/java/laf-widget.jar

    It comes from the 1.5.2.1 Debian package in the Ubuntu repositories. I don't know why it does not work anymore. But it does not seem to be required.

     
  • Chris Duncan
    Chris Duncan
    2012-10-29

    • status: open --> closed-works-for-me