UnsupportedClassVersionError...

Discussion in 'Java' started by Robin Snow, Feb 23, 2004.

  1. Robin Snow

    Robin Snow Guest

    Hi, i am linking with a particular java numeric library to do svd...
    however i can run program perfectly inside jbuilder...
    now i wanna develop a shell script (perl) to automate the task at
    hand...
    however, using exactly the same command from jbuilder execution in a
    dos environment will cause UnsupportedClassVersionError on a
    class....while this class obviously can be found when running inside
    jbuilder ide...

    wonder if anyone happen to know what is wrong...or i appreciate any
    help on educated guess on what might be wrong...

    thanks~
     
    Robin Snow, Feb 23, 2004
    #1
    1. Advertising

  2. Robin Snow wrote:

    > Hi, i am linking with a particular java numeric library to do svd...
    > however i can run program perfectly inside jbuilder...
    > now i wanna develop a shell script (perl) to automate the task at
    > hand...
    > however, using exactly the same command from jbuilder execution in a
    > dos environment will cause UnsupportedClassVersionError on a
    > class....while this class obviously can be found when running inside
    > jbuilder ide...
    >
    > wonder if anyone happen to know what is wrong...or i appreciate any
    > help on educated guess on what might be wrong...


    Very likely you have multiple Java runtime environments installed on
    your computer, and the one in your executable path is an older version
    than the one JBuilder is using. You can try "java -version" from the
    shell prompt to find out which version you are in fact getting when you
    invoke Java that way. The likely solutions are to either modify your
    path or to specify the full path to the version of the Java launcher you
    need to use.


    John Bollinger
     
    John C. Bollinger, Feb 23, 2004
    #2
    1. Advertising

  3. (Robin Snow) writes:

    > however, using exactly the same command from jbuilder execution in a
    > dos environment will cause UnsupportedClassVersionError on a
    > class....while this class obviously can be found when running inside
    > jbuilder ide...


    Most likely cause: You use one of the 1.4-based JBuilders, but your
    command-line invocation of Java uses a 1.3 or earlier VM. Probably the
    libvrary you use is compiled for use with 1.4 or later only (e.g. it
    uses assert), which has a different class version number (48.0) than
    older JVMs can cope with.
     
    Tor Iver Wilhelmsen, Feb 23, 2004
    #3
  4. Robin Snow

    Chris Smith Guest

    Robin Snow wrote:
    > Hi, i am linking with a particular java numeric library to do svd...
    > however i can run program perfectly inside jbuilder...
    > now i wanna develop a shell script (perl) to automate the task at
    > hand...
    > however, using exactly the same command from jbuilder execution in a
    > dos environment will cause UnsupportedClassVersionError on a
    > class....while this class obviously can be found when running inside
    > jbuilder ide...
    >
    > wonder if anyone happen to know what is wrong...or i appreciate any
    > help on educated guess on what might be wrong...


    Apparently, the class was compiled to target a newer version of the Java
    Runtime Environment than the one you've made accessible to Perl.
    JBuilder must be using a different, and newer, JRE version. Try typing
    'java -version' from the same context that you run the shell script, and
    see what happens.

    --
    www.designacourse.com
    The Easiest Way to Train Anyone... Anywhere.

    Chris Smith - Lead Software Developer/Technical Trainer
    MindIQ Corporation
     
    Chris Smith, Feb 24, 2004
    #4
  5. Robin Snow

    javabudy

    Joined:
    Oct 24, 2010
    Messages:
    13
    here are few steps to fix unsupportedclassversionerror
    1) Find out due to which jar or class file this UnSupportedClassVersionError is coming?
    2) Try to compile source code of that jar with the JDK version you are using to run your program, if source is available.
    3) If you don't have source try to find the compatible version of that library.
    4) Increase the JRE version you are using to run your program.
     
    javabudy, Aug 28, 2011
    #5
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. KS
    Replies:
    1
    Views:
    2,005
    Tor Iver Wilhelmsen
    Mar 5, 2004
  2. R
    Replies:
    1
    Views:
    4,853
  3. leo v
    Replies:
    1
    Views:
    4,834
    John McGrath
    May 12, 2005
  4. Replies:
    6
    Views:
    1,064
    Roedy Green
    Jul 23, 2007
  5. asit
    Replies:
    4
    Views:
    648
    nagkumar
    Jun 9, 2009
Loading...

Share This Page