UnsupportedClassVersionError...

R

Robin Snow

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~
 
J

John C. Bollinger

Robin said:
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
(e-mail address removed)
 
T

Tor Iver Wilhelmsen

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.
 
C

Chris Smith

Robin said:
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
 
Joined
Oct 24, 2010
Messages
13
Reaction score
0
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.
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,776
Messages
2,569,603
Members
45,189
Latest member
CryptoTaxSoftware

Latest Threads

Top