After updating to 0.9.244 , getting error Unsupported major.minor version 51.0

109 views
Skip to first unread message

80Vikram

unread,
Jun 6, 2014, 11:31:27 AM6/6/14
to thucydid...@googlegroups.com
Hi All,

I've updated to latest thucydides version 0.9.244 but it's giving errors as below

java.lang.UnsupportedClassVersionError: net/thucydides/junit/runners/ThucydidesRunner : Unsupported major.minor version 51.0

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

at java.lang.ClassLoader.defineClassCond(ClassLoader.java:637)

at java.lang.ClassLoader.defineClass(ClassLoader.java:621)

at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)

at java.net.URLClassLoader.defineClass(URLClassLoader.java:283)

at java.net.URLClassLoader.access$000(URLClassLoader.java:58)

at java.net.URLClassLoader$1.run(URLClassLoader.java:197)

at java.security.AccessController.doPrivileged(Native Method)

at java.net.URLClassLoader.findClass(URLClassLoader.java:190)

at java.lang.ClassLoader.loadClass(ClassLoader.java:306)

at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)

at java.lang.ClassLoader.loadClass(ClassLoader.java:247)

at java.lang.Class.forName0(Native Method)

at java.lang.Class.forName(Class.java:249)

at sun.reflect.generics.factory.CoreReflectionFactory.makeNamedType(CoreReflectionFactory.java:95)

at sun.reflect.generics.visitor.Reifier.visitClassTypeSignature(Reifier.java:107)

at sun.reflect.generics.tree.ClassTypeSignature.accept(ClassTypeSignature.java:31)

at sun.reflect.annotation.AnnotationParser.parseSig(AnnotationParser.java:370)

at sun.reflect.annotation.AnnotationParser.parseClassValue(AnnotationParser.java:351)

at sun.reflect.annotation.AnnotationParser.parseMemberValue(AnnotationParser.java:280)

at sun.reflect.annotation.AnnotationParser.parseAnnotation(AnnotationParser.java:222)

at sun.reflect.annotation.AnnotationParser.parseAnnotations2(AnnotationParser.java:69)

at sun.reflect.annotation.AnnotationParser.parseAnnotations(AnnotationParser.java:52)

at java.lang.Class.initAnnotationsIfNecessary(Class.java:3127)

at java.lang.Class.getAnnotations(Class.java:3107)

at org.junit.runner.Description.createSuiteDescription(Description.java:123)

at org.junit.internal.runners.ErrorReportingRunner.getDescription(ErrorReportingRunner.java:25)

at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:49)

at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)

at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467)

at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683)

at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390)

at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197)


Please let me know which step I'm doing wrong . 

<thucydides.version>0.9.244</thucydides.version>    This is only value I keep updating time to time.

java version "1.8.0_05"

Java(TM) SE Runtime Environment (build 1.8.0_05-b13)

Java HotSpot(TM) 64-Bit Server VM (build 25.5-b02, mixed mode)

Thanks & Regards,

Vikram






80Vikram

unread,
Jun 6, 2014, 12:29:57 PM6/6/14
to thucydid...@googlegroups.com
This error is shown from 0.9.236 onwards.

For long time I was on build 0.9.235

Regards,
Vikram

Adrian Mitev

unread,
Jun 9, 2014, 1:41:43 AM6/9/14
to thucydid...@googlegroups.com
"Unsupported major.minor version 51.0" - this usually means that your Java version is prior to 1.7. I'm using Thucydides 0.9.244 with Java 7 and it works fine for me.

80Vikram

unread,
Jun 10, 2014, 6:25:21 AM6/10/14
to thucydid...@googlegroups.com
Hi Adrian,

I've updated to latest java version

On MAC it shows 1.8.0_05 and I have also set JAVA_HOME in .bash_profile

Later did Maven > Update Project 

But still getting this error , please clarify which step I'm missing now ?

Thanks & Regards,
Vikram

80Vikram

unread,
Jun 10, 2014, 9:50:05 AM6/10/14
to thucydid...@googlegroups.com
Hi Adrian and All,

I could solve the issue , please find below info on it

1. Even after updating to latest JDK , eclipse still pointing to older JDK
2. Make Eclipse point to latest JDK
3. Also set JAVA_HOME to make sure correct version of JDK is picked up.

Thanks again.

Regards,
Vikram
Reply all
Reply to author
Forward
0 new messages