Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UnsupportedClassVersionError #7

Open
qcastel opened this issue Nov 27, 2015 · 3 comments
Open

UnsupportedClassVersionError #7

qcastel opened this issue Nov 27, 2015 · 3 comments

Comments

@qcastel
Copy link

qcastel commented Nov 27, 2015

I'm trying to use your library with java 7. When I compile, I get

Java unsupported major minor version 52.0

so I believe the jar is compiled with Java 8.

My application needs to be compatible with java 7 and 8. Have you got a suggestion? using 2.0.1?

@michaelseanhansen
Copy link

Same issue here on Java 7. Downgrading to 2.0.1 allows it to work, but I'd love to see this resolved.

@ansell
Copy link

ansell commented Aug 4, 2016

The maven-compiler-plugin needs to be configured to get a consistent target JVM version:

https://maven.apache.org/plugins/maven-compiler-plugin/examples/set-compiler-source-and-target.html

Currently it isn't configured so will use whatever default method maven-compiler-plugin is setup to use to choose these.

@ansell
Copy link

ansell commented Aug 5, 2016

Looking further into it, the author has configured it in the parent pom for all of their projects to be 1.8:

https://repo.maven.apache.org/maven2/de/malkusch/parent/oss-parent/1.10/oss-parent-1.10.pom

However, that can be overriden locally for this project to downgrade it to Java7.

Opened a pull request with a fix for the next version:

#10

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants