Menu

Install / Run Error

Help
2009-06-19
2012-11-16
  • conrad cutway

    conrad cutway - 2009-06-19

    I am running windows Vista w/ java version 1.5.0_09.
    I have attempted both methods of running / installing (via command-line & double-clicking the MarsProject.jar file - and neither method is working for me. Upon double-clicking the file, nothing happens - at all, and when trying to run it via command-line, this is the error message that I get:

    Exception in thread "main" java.lang.UnsupportedClassVersionError: Bad version number in .class file

            at java.lang.ClassLoader.defineClass1(Native Method)
            at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
            at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
            at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
            at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
            at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
            at java.security.AccessController.doPrivileged(Native Method)
            at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
            at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
            at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268)
            at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
            at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)

    Is there a resolution for this?

    Thanks!

     
    • Scott Davis

      Scott Davis - 2009-07-14

      Sorry it took me so long to get a resolution for this bug, but I think I've got a fix.

      The problem was that I built the 2.86 release on a computer with a 1.6 java compiler and didn't set the JVM compliance in the build script to 1.5.  I fixed this and tested it out on a WinXP box with just Java 1.5 installed.

      Here is the link to the patch build for 2.86:
      http://mars-sim.sourceforge.net/download/MarsProject_2.86.1.zip

      Please let me know if it works for you or if you still have problems.

      Version 2.87 and later builds will have the JVM 1.5 compliance setting in the build script so they shouldn't be a problem for you.  We may at some point make JVM 1.6 the minimum requirement, but we don't have a need for that just yet.

      Sorry it wasn't running on your system.  Hope it works now.

      Scott Davis
      Mars Simulation Project
      http://mars-sim.sourceforge.net
      scud1@users.sourceforge.net

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.