Menu

#905 July/August 2015 JNLP fails to launch

None
closed-fixed
None
5
2015-08-13
2015-08-12
Ben Bishop
No

Launching "new" version gets a "Unable to launch the application" error from Java; the 'details' box provides:

<jnlp codebase="http://colossus.sf.net/" href="public-build/Colossus.jnlp"> <application-desc main-class="net.sf.colossus.appmain.Start"/> <information> Colossus <vendor>Colossus dev team</vendor> <icon href="Colossus.gif"/> <offline-allowed/> <homepage href="index.html"/> </information> <resources> <jar href="public-build/Colossus.jar"/> <jar href="public-build/libs/jdom.jar"/> <j2se version="1.5+" max-heap-size="256M"/> </resources> <security> <all-permissions/> </security> </jnlp>

exception:
java.lang.UnsupportedClassVersionError: net/sf/colossus/appmain/Start : Unsupported major.minor version 51.0
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(Unknown Source)
at java.security.SecureClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.access$000(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at com.sun.jnlp.JNLPClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at com.sun.javaws.Launcher.doLaunchApp(Unknown Source)
at com.sun.javaws.Launcher.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)

Related

Bugs: #905

Discussion

  • Clemens Katzer

    Clemens Katzer - 2015-08-12

    Looks like you are using Java version 1.5. Colossus requires now 1.7:

    2015-08-05: I have made a new "official" build with all the recently added features (requires Java 7)

    As workaround I have put a build that still works with Java 1.5 to the page on my server.

    http://www.play-colossus.net/colossus/play/

    As page says, within mid-term future (=next 1-2 years ;-) I will drop 1.5 support.

    However, your report make me notice that the jnlp files still say it needs only 1.5:

       <resources>
         <jar href="public-testing/Colossus.jar"/>
         <jar href="public-testing/libs/jdom.jar"/>
         <j2se version="1.5+" max-heap-size="256M"/>
       </resources>
    

    I fixed that now in "main page". With that fixed, it would probably give a more informative error message.

    I can't (easily) test whether it works with Java 1.5 now ("my page") and whether it gives a besser message (official page).

    Could you try out those two and report back here the result?

    Thanks,
    Clemens

     
  • Clemens Katzer

    Clemens Katzer - 2015-08-12

    OK, summary:

    Could you try out both the webstart file on official page (should now give a more meaningful error message) and the one on my own page ( http://www.play-colossus.net/colossus/play/ ) (should work with java 1.5) and report back to me what happens?

    Thx, Clemens

     
    • Ben Bishop

      Ben Bishop - 2015-08-12

      I'll be able to test this later today. Thank you for the quick response!

      On Wed, Aug 12, 2015 at 2:13 AM, Clemens Katzer cleka@users.sf.net wrote:

      OK, summary:

      Could you try out both the webstart file on official page (should now give
      a more meaningful error message) and the one on my own page (
      http://www.play-colossus.net/colossus/play/ ) (should work with java 1.5)
      and report back to me what happens?

      Thx, Clemens

      Status: open
      Group:
      Created: Wed Aug 12, 2015 12:15 AM UTC by Ben Bishop
      Last Updated: Wed Aug 12, 2015 06:10 AM UTC
      Owner: nobody

      Launching "new" version gets a "Unable to launch the application" error
      from Java; the 'details' box provides:
      <jnlp codebase="http://colossus.sf.net/" href="public-build/Colossus.jnlp"> <application-desc main-class="net.sf.colossus.appmain.Start"/> <information> <vendor>Colossus
      dev team</vendor> <icon href="Colossus.gif"/> <offline-allowed/> <homepage href="index.html"/> </information> <resources> <jar href="public-build/Colossus.jar"/> <jar href="public-build/libs/jdom.jar"/>
      <j2se version="1.5+" max-heap-size="256M"/> </resources> <security>
      <all-permissions/> </security> </jnlp>

      exception:
      java.lang.UnsupportedClassVersionError: net/sf/colossus/appmain/Start :
      Unsupported major.minor version 51.0
      at java.lang.ClassLoader.defineClass1(Native Method)
      at java.lang.ClassLoader.defineClass(Unknown Source)
      at java.security.SecureClassLoader.defineClass(Unknown Source)
      at java.net.URLClassLoader.defineClass(Unknown Source)
      at java.net.URLClassLoader.access$000(Unknown Source)
      at java.net.URLClassLoader$1.run(Unknown Source)
      at java.security.AccessController.doPrivileged(Native Method)
      at java.net.URLClassLoader.findClass(Unknown Source)
      at com.sun.jnlp.JNLPClassLoader.findClass(Unknown Source)
      at java.lang.ClassLoader.loadClass(Unknown Source)
      at java.lang.ClassLoader.loadClass(Unknown Source)
      at com.sun.javaws.Launcher.doLaunchApp(Unknown Source)
      at com.sun.javaws.Launcher.run(Unknown Source)
      at java.lang.Thread.run(Unknown Source)


      Sent from sourceforge.net because you indicated interest in
      https://sourceforge.net/p/colossus/bugs/905/

      To unsubscribe from further messages, please visit
      https://sourceforge.net/auth/subscriptions/

       

      Related

      Bugs: #905

      • Ben Bishop

        Ben Bishop - 2015-08-12

        The 1.5 version launched successfully; I'll be updating my JRE version.

        The jnlp from the colossus.sf.net page now has a much better error
        description (but it doesn't seem to support cut & paste for me to show it)
        "The application has requested a version of the JRE (version 1.7+) that is
        not locally installed ...

        On Wed, Aug 12, 2015 at 9:37 AM, Ben Bishop benbishop@users.sf.net wrote:

        I'll be able to test this later today. Thank you for the quick response!

        On Wed, Aug 12, 2015 at 2:13 AM, Clemens Katzer cleka@users.sf.net wrote:

        OK, summary:

        Could you try out both the webstart file on official page (should now give
        a more meaningful error message) and the one on my own page (
        http://www.play-colossus.net/colossus/play/ ) (should work with java 1.5)
        and report back to me what happens?
        Thx, Clemens

        Status: open
        Group:
        Created: Wed Aug 12, 2015 12:15 AM UTC by Ben Bishop
        Last Updated: Wed Aug 12, 2015 06:10 AM UTC
        Owner: nobody

        Launching "new" version gets a "Unable to launch the application" error
        from Java; the 'details' box provides:
        <jnlp codebase="http://colossus.sf.net/" href="public-build/Colossus.jnlp"> <application-desc main-class="net.sf.colossus.appmain.Start"/> <information> <vendor>Colossus
        dev team</vendor> <icon href="Colossus.gif"/> <offline-allowed/> <homepage href="index.html"/> </information> <resources> <jar href="public-build/Colossus.jar"/> <jar href="public-build/libs/jdom.jar"/>
        <j2se version="1.5+" max-heap-size="256M"/> </resources> <security>
        <all-permissions/> </security> </jnlp>

        exception:
        java.lang.UnsupportedClassVersionError: net/sf/colossus/appmain/Start :
        Unsupported major.minor version 51.0
        at java.lang.ClassLoader.defineClass1(Native Method)
        at java.lang.ClassLoader.defineClass(Unknown Source)
        at java.security.SecureClassLoader.defineClass(Unknown Source)
        at java.net.URLClassLoader.defineClass(Unknown Source)
        at java.net.URLClassLoader.access$000(Unknown Source)
        at java.net.URLClassLoader$1.run(Unknown Source)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(Unknown Source)
        at com.sun.jnlp.JNLPClassLoader.findClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at com.sun.javaws.Launcher.doLaunchApp(Unknown Source)
        at com.sun.javaws.Launcher.run(Unknown Source)
        at java.lang.Thread.run(Unknown Source)


        Sent from sourceforge.net because you indicated interest in
        https://sourceforge.net/p/colossus/bugs/905/

        To unsubscribe from further messages, please visit
        https://sourceforge.net/auth/subscriptions/


        Status: open
        Group:
        Created: Wed Aug 12, 2015 12:15 AM UTC by Ben Bishop
        Last Updated: Wed Aug 12, 2015 06:13 AM UTC
        Owner: nobody

        Launching "new" version gets a "Unable to launch the application" error
        from Java; the 'details' box provides:
        <jnlp codebase="http://colossus.sf.net/" href="public-build/Colossus.jnlp"> <application-desc main-class="net.sf.colossus.appmain.Start"/> <information> <vendor>Colossus
        dev team</vendor> <icon href="Colossus.gif"/> <offline-allowed/> <homepage href="index.html"/> </information> <resources> <jar href="public-build/Colossus.jar"/> <jar href="public-build/libs/jdom.jar"/>
        <j2se version="1.5+" max-heap-size="256M"/> </resources> <security>
        <all-permissions/> </security> </jnlp>

        exception:
        java.lang.UnsupportedClassVersionError: net/sf/colossus/appmain/Start :
        Unsupported major.minor version 51.0
        at java.lang.ClassLoader.defineClass1(Native Method)
        at java.lang.ClassLoader.defineClass(Unknown Source)
        at java.security.SecureClassLoader.defineClass(Unknown Source)
        at java.net.URLClassLoader.defineClass(Unknown Source)
        at java.net.URLClassLoader.access$000(Unknown Source)
        at java.net.URLClassLoader$1.run(Unknown Source)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(Unknown Source)
        at com.sun.jnlp.JNLPClassLoader.findClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at com.sun.javaws.Launcher.doLaunchApp(Unknown Source)
        at com.sun.javaws.Launcher.run(Unknown Source)
        at java.lang.Thread.run(Unknown Source)


        Sent from sourceforge.net because you indicated interest in
        https://sourceforge.net/p/colossus/bugs/905/

        To unsubscribe from further messages, please visit
        https://sourceforge.net/auth/subscriptions/

         

        Related

        Bugs: #905

  • Clemens Katzer

    Clemens Katzer - 2015-08-13
    • status: open --> closed-fixed
    • assigned_to: Clemens Katzer
    • Group: -->
     
  • Clemens Katzer

    Clemens Katzer - 2015-08-13

    Closing this.

     

Log in to post a comment.