#1 2012-06-09 19:58:27

sheridany
Member
Registered: 2007-10-26
Posts: 58

solaris error message

Created a job in Windows XP and when I try to run the sh script in solaris I get the following error message...Exception in thread "main" java.lang.UnsupportedClassVersionError: Bad version number in .class file

We are running this on the solaris machine...

java version "1.5.0_24"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_24-b02)
Java HotSpot(TM) Server VM (build 1.5.0_24-b02, mixed mode)


Desktop is

Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.

H:\>java -version
java version "1.7.0_01"
Java(TM) SE Runtime Environment (build 1.7.0_01-b08)
Java HotSpot(TM) Client VM (build 21.1-b02, mixed mode, sharing)

H:\>

Last edited by sheridany (2012-06-09 20:07:17)

Offline

#2 2012-06-11 07:37:03

pedro
Member
Registered: 2011-11-17
Posts: 3682

Re: solaris error message

Hi

You'd better make the same Java versions for Windows and Linux.
Or you will get UnsupportedClassVersionError error.

Regards,
Pedro


Only Paranoid Survive.

Offline

Board footer

Powered by FluxBB