Getting "Unsupported major.minor version 52.0" exception while using Spark Web Application framework [duplicate]
Asked Answered
C

1

10

Getting following exception: Exception in thread "main" java.lang.UnsupportedClassVersionError: spark/Route : Unsupported major.minor version 52.0

trying to use spark web application framework, when I execute file, it throws this exception.

Spark Framework version: 2.0.0

Cantrip answered 3/6, 2014 at 13:55 Comment(3)
I could resolve my problem by decreasing version of Spark Framework that I was using Earlier i was using Spark Framework version : 2.0.0 Degraded version to 1.1.1 And it worked. Hope other people will find it useful.Cantrip
Increasing the jdk/jre version it uses would also work.Betaine
In my case had multiple jdks, so just needed to set JAVA_HOME to 1.8Lareine
S
14

You are using Java files, compiled with Java 8 (version 52.0) and a JRE which does not support it (so Java < version 8)

Stephie answered 3/6, 2014 at 13:58 Comment(2)
this isn't a solution, more of a comment?Skive
Yeah. The actual solution is implicit and mentioned in the comments above. So no need to add it here again, BTW this question is marked "This question already has an answer here:".Stephie

© 2022 - 2024 — McMap. All rights reserved.