The Artima Developer Community
Sponsored Link

SuiteRunner Forum
Unsupported major.minor version 48.0

14 replies on 1 page. Most recent reply: Aug 29, 2007 1:36 PM by sa hu

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 14 replies on 1 page
Primoz Prislan

Posts: 3
Nickname: primozpris
Registered: Feb, 2003

Unsupported major.minor version 48.0 Posted: May 13, 2003 12:05 AM
Reply to this message Reply
Advertisement
When I try to run my JUnit test, I get followin error message:

Run Aborted
Name: org.suiterunner.Runner
Message: An exception or error caused a run to abort.
Date: Tue May 13 09:01:37 CEST 2003
Source: java.lang.UnsupportedClassVersionError: si/marand/tools/client/MToolsClientTestSuite (Unsupported major.minor version 48.0)
Thread: Thread-22
Throwable:
java.lang.UnsupportedClassVersionError: si/marand/tools/client/MToolsClientTestSuite (Unsupported major.minor version 48.0)

at java.lang.ClassLoader.defineClass0(Native Method)

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$100(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 java.lang.ClassLoader.loadClass(Unknown Source)

at org.suiterunner.SuiteRunnerThread.run(SuiteRunnerThread.java:66)


Adam Duffy

Posts: 168
Nickname: adamduffy
Registered: Feb, 2003

Re: Unsupported major.minor version 48.0 Posted: May 16, 2003 3:26 AM
Reply to this message Reply
If possible, dig up the source code for the si.marand.tools.client.MToolsClientTestSuite and see what the version number in the source code.

I think the java.lang.UnsupportedClassVersionError is something to do with the version number in the source code (perhaps it should be smaller than 48.0)?

Adam

Primoz Prislan

Posts: 3
Nickname: primozpris
Registered: Feb, 2003

Re: Unsupported major.minor version 48.0 Posted: May 16, 2003 4:30 AM
Reply to this message Reply
The problem is that there is no version (field, mathod, class - nothing!) in source code.
I think that there is a problem in class version not source version, but I simply don't understand why.

Primoz Prislan.

Adam Duffy

Posts: 168
Nickname: adamduffy
Registered: Feb, 2003

Re: Unsupported major.minor version 48.0 Posted: May 16, 2003 4:40 AM
Reply to this message Reply
I had a look around with Google for similar errors and the consensus seems to be of the form,

"The class you are trying to load has been compiled for JDK 1.4 while you are running an older VM"

Try updating your JVM and see if that works.

Adam

Primoz Prislan

Posts: 3
Nickname: primozpris
Registered: Feb, 2003

Re: Unsupported major.minor version 48.0 Posted: May 18, 2003 10:35 PM
Reply to this message Reply
I works.

I forget that I installed Oracle which without any warning installed its 1.3 JRE instead of my 1.4.1.

Thank you!

Bill Venners

Posts: 2284
Nickname: bv
Registered: Jan, 2002

Re: Unsupported major.minor version 48.0 Posted: May 20, 2003 9:11 PM
Reply to this message Reply
Your problem helped me realize that I should really be compiling the release binaries with a 1.2 compiler, so the version number won't cause the 1.2 and 1.3 VMs indigestion.

Darren

Posts: 1
Nickname: bigred
Registered: Sep, 2003

Re: Unsupported major.minor version 48.0 Posted: Sep 4, 2003 3:05 PM
Reply to this message Reply
If you're using JBuilder ( I'm on v8 ) and getting this error, here's what my problem was...

Project Properties --> Build --> Java --> Target VM

Mine was set to 'Java 2 SDK, v 1.4 and later' and I was using BEA Weblogic with JDK v1.3.1. Had to change the value in JBuilder to be v1.3 and all is fine now.

;D

Peter Diotte

Posts: 1
Nickname: peter116
Registered: Apr, 2004

Re: Unsupported major.minor version 48.0 Posted: Apr 20, 2004 6:49 PM
Reply to this message Reply
Darren - thanks for the tip. I too was running 1.4 JDK and needed 1.3. I'm commenting because I'm using Eclipse as my IDE.

Sandeep Jindal

Posts: 1
Nickname: sandeep138
Registered: May, 2005

Re: Unsupported major.minor version 48.0 Posted: May 30, 2005 6:53 AM
Reply to this message Reply
Hi,

Thanks for the explanaion. This solved my problem too in WSAD. Now I am using JVM as j2sdk1.4.2.06 and in the compiation, 1.4 as option.

Regards
Sandeep Jindal

Chris Chiam

Posts: 1
Nickname: cjc
Registered: May, 2006

Re: Unsupported major.minor version 48.0 Posted: May 12, 2006 1:46 PM
Reply to this message Reply
Thank you so much for posting this - I had the exact some problem and it was driving me nuts until I read this. Oracle had totally usurped the PATH variable in windows and was forcing it to look in its own directory at the Java version (1.3) it had installed itself. ARGH! Thanks everyone!!!

Anto Carp

Posts: 1
Nickname: sandra07
Registered: May, 2006

Re: Unsupported major.minor version 48.0 Posted: May 30, 2006 12:02 PM
Reply to this message Reply
How can i find out with which version some jar was compiled, so that i try using the same version?

I think you could be right about the different versions.

I have imported a jar which has been compiled with i-dont-know-which-java version. When i try to compile my code with this jar i get the message: java.lang.UnsupportedClassVersionError: si/marand/tools/client/MToolsClientTestSuite (Unsupported major.minor version 48.0)

Vandana More

Posts: 3
Nickname: tai
Registered: Nov, 2006

Re: Unsupported major.minor version 48.0 Posted: Nov 2, 2006 9:46 PM
Reply to this message Reply
I got also same problem,
I am using eclipse which takes jre1.4.12 default version on my pc and reruire is jre1.5 so when i changed it it works

Thank You Very Much

Anzor Berezgov

Posts: 2
Nickname: anzor79
Registered: Jun, 2007

Re: Unsupported major.minor version 48.0 Posted: Jun 30, 2007 12:32 AM
Reply to this message Reply
This problem Occured after that I've installed Oracle.
It's cured by changing PATH variable, where Oracle-java (1.3) stayed at first than JDK-java(1.6) i.e.:

Path-variable before:
C:\Program Files\Oracle\jre\1.3.1\bin; C:\Program Files\Java\jdk1.6.0_01\bin\;

Path-variable after:
C:\Program Files\Java\jdk1.6.0_01\bin\; C:\Program Files\Oracle\jre\1.3.1\bin;

Now if we type a command
java HelloWorld
we're running a newer version 1.6 of JVM

Anzor Berezgov

Posts: 2
Nickname: anzor79
Registered: Jun, 2007

Re: Unsupported major.minor version 48.0 Posted: Jun 30, 2007 12:36 AM
Reply to this message Reply
Alternate solving of this problem:
http://confluence.atlassian.com/display/DOC/Set+JAVA_HOME+variable+in+Windows

sa hu

Posts: 3
Nickname: saleh194
Registered: Aug, 2007

Get $ 3000 a month with Agloco Posted: Aug 29, 2007 1:36 PM
Reply to this message Reply
Get $ 3000 a month with Agloco

I recently joined AGLOCO and now I would like to refer it to you because I like the idea and I want you to share in what I think will be an exciting new Internet concept.

AGLOCO’s story is simple:

Advertisers, search providers and online retailers are paying billions to reach you while you surf, but you don’t make any money from this. AGLOCO thinks you deserve a piece of the action.

AGLOCO is building a new form of online community that they call an Economic Network. They are not only paying Members their fair share, but they’re building a community that will generate the kind of fortune that YouTube made. But instead of that wealth making only a few people rich, the entire community will get its share.

AGLOCO collects money from those companies on behalf of its members. All you need to do is install the toolbar from AGLOCO so that these advertisers can better target their advertisement to you based on your surfing habits.

What's the catch? No catch - no spyware, no pop-ups and no spam - membership and software are free and AGLOCO is 100% member owned. Privacy is a core value and AGLOCO never sells or rents member information.

If you use this link to sign up, I automatically get credit for referring you and helping to build AGLOCO.

http://www.agloco.com/r/BBGM4302


Thanks,

Take the code BBGM4302 and substitute it with your own member id.

Flat View: This topic has 14 replies on 1 page
Topic: jython test scripts instead of java Previous Topic   Next Topic Topic: RunPath does not allow spaces in path

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use