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

Maven artifacts are not compatible with Java versions below 8 #12

Closed
mikehepple opened this issue Jul 2, 2015 · 5 comments
Closed

Maven artifacts are not compatible with Java versions below 8 #12

mikehepple opened this issue Jul 2, 2015 · 5 comments

Comments

@mikehepple
Copy link

When attempting to use the library in Java 7 we get the following error:

Caused by: java.lang.UnsupportedClassVersionError: org/mitre/taxii/messages/TaxiiXml : Unsupported major.minor version 52.0

Could future versions be compiled with 1.7 compatibility?

(Same issue was raised to the java-stix project - STIXProject/java-stix#1)

@jasenj1
Copy link
Contributor

jasenj1 commented Jul 2, 2015

Yes, the library could target 1.7.
I've published a new release 1.1.0.1 which targets Java 1.7.
It make take a while for it to appear in the central Maven repository.
If it solves your problem, please close this issue.

@mikehepple
Copy link
Author

Yup, that worked great. Thanks for the quick response!

@mikehepple
Copy link
Author

I ran the wrong unit test.. it's still compiled for Java 8:

~/.m2/repository/org/mitre/taxii/taxii/1.1.0.1$ javap -verbose org/mitre/taxii/ContentBindings.class | grep major
  major version: 52

@mikehepple mikehepple reopened this Jul 6, 2015
@jasenj1
Copy link
Contributor

jasenj1 commented Jul 6, 2015

Whoops. Very sorry about that. I rebuilt it and this time confirmed the major version. Republished as the same version. Should hit the central repository soon.

@mikehepple
Copy link
Author

I can confirm it's on central (unfortunately our nexus is refusing to pick it up.. but we'll sort it :))

Thanks again!

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

2 participants