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

class file has wrong version 55.0, should be 52.0 #68

Closed
opariha opened this issue Sep 7, 2022 · 6 comments
Closed

class file has wrong version 55.0, should be 52.0 #68

opariha opened this issue Sep 7, 2022 · 6 comments

Comments

@opariha
Copy link

opariha commented Sep 7, 2022

we are using java 8 to run on local

Error Showing

java: cannot access org.opensearch.client.opensearch.OpenSearchClient
bad class file: .../org/opensearch/client/opensearch-java/2.1.0/opensearch-java-2.1.0.jar!/org/opensearch/client/opensearch/OpenSearchClient.class
class file has wrong version 55.0, should be 52.0
Please remove or make sure it appears in the correct subdirectory of the classpath.

@lizsnyder
Copy link
Member

@opariha can you please share the file you're referring to?

@opariha
Copy link
Author

opariha commented Sep 8, 2022

hi @lizsnyder
PFA

OpenSearchClient java File

OpenSearchClient.zip

OpenSearch Jar which is used by us

opensearch-java-2.1.0.zip

@lizsnyder
Copy link
Member

@opariha you opened this issue in the developer guide repository. What documentation page are you referring to / leaving feedback on?

@lizsnyder
Copy link
Member

@dblock @arunx2 FYI, can you please have a look at this?

For reference: #63

@dblock
Copy link
Contributor

dblock commented Sep 19, 2022

opensearch-java 2.x requires Java 11+, see opensearch-project/opensearch-java#156

So this issue is “by design” and we need to document it, and unfortunately there’s no quick fix to re-add Java 8 support :(

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