Menu

#36 Exception in thread "main" java.lang.UnsupportedClassVersionError

CVS Code
closed-fixed
nobody
None
5
2015-05-28
2015-01-27
Joe Cursons
No

I just upgraded to VANTED v2.2 and it is not loading - the error output is:

C:\Program Files (x86)\VANTED>starter.cmd
hello world
physical memory 16335
vanted memory 8167
Exception in thread "main" java.lang.UnsupportedClassVersionError: de/ipk_gaters
leben/ag_nw/graffiti/plugins/gui/webstart/Main : Unsupported major.minor version
51.0
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClassCond(Unknown Source)
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 java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
Could not find the main class: de.ipk_gatersleben.ag_nw.graffiti.plugins.gui.web
start.Main. Program will exit.

If I open the .jar file without the starter.cmd batch file, then it will open and I get a "Low memory configuration detected!" warning.

If I try and run the .jar file from command line, with or without a -Xmx command to increase memory, I get the same error as above.

Please feel free to contact me if any further information is required - joseph.cursons@unimelb.edu.au

Thanks,
Joe

Related

Bugs: #36

Discussion

  • Matthias Klapperstück

    Hello Joe,

    please upgrade your JAVA version to at least 1.7.
    We dropped support for Java < 1.6

    Cheers
    Matthias

    On 27 January 2015 at 17:27, Joe Cursons jcursons@users.sf.net wrote:


    Status: open
    Group: CVS Code
    Created: Tue Jan 27, 2015 06:27 AM UTC by Joe Cursons
    Last Updated: Tue Jan 27, 2015 06:27 AM UTC
    Owner: nobody

    I just upgraded to VANTED v2.2 and it is not loading - the error output is:

    C:\Program Files (x86)\VANTED>starter.cmd
    hello world
    physical memory 16335
    vanted memory 8167
    Exception in thread "main" java.lang.UnsupportedClassVersionError:
    de/ipk_gaters
    leben/ag_nw/graffiti/plugins/gui/webstart/Main : Unsupported major.minor
    version
    51.0
    at java.lang.ClassLoader.defineClass1(Native Method)
    at java.lang.ClassLoader.defineClassCond(Unknown Source)
    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 java.lang.ClassLoader.loadClass(Unknown Source)
    at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    Could not find the main class:
    de.ipk_gatersleben.ag_nw.graffiti.plugins.gui.web
    start.Main. Program will exit.

    If I open the .jar file without the starter.cmd batch file, then it will
    open and I get a "Low memory configuration detected!" warning.

    If I try and run the .jar file from command line, with or without a -Xmx
    command to increase memory, I get the same error as above.

    Please feel free to contact me if any further information is required -
    joseph.cursons@unimelb.edu.au

    Thanks,
    Joe


    Sent from sourceforge.net because you indicated interest in
    https://sourceforge.net/p/vanted/bugs/36/

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

    --
    Matthias Klapperstueck
    Faculty of Information Technology
    Monash University, Clayton, Australia
    Office: Rm 318.6, Building 82, Clayton Campus

     

    Related

    Bugs: #36

  • Joe Cursons

    Joe Cursons - 2015-01-27

    OK, that was an easy fix – thanks for the information.

    If you’re at all interested, the startup script is causing a crash (by assigning too much memory – see below) but if I run it manually with 1024 MB then it runs fine.

    C:\Program Files (x86)\VANTED>starter.cmd
    hello world
    physical memory 16335
    vanted memory 8167
    Invalid maximum heap size: -Xmx8167m
    The specified size exceeds the maximum representable size.
    Error: Could not create the Java Virtual Machine.
    Error: A fatal exception has occurred. Program will exit.

    C:\Program Files (x86)\VANTED>java -jar -Xmx1024m vanted.jar
    Welcome! About to start the application...
    Trying to load Add-ons...
    Add-on sbgn-ed.jar processed
    Add-ons loaded in 170ms
    Task null finished after 5 sec.

     
  • Tobias Czauderna

    • status: open --> closed-fixed
     

Log in to post a comment.