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

Example failed #47

Open
zhoushuntong opened this issue Feb 25, 2021 · 2 comments
Open

Example failed #47

zhoushuntong opened this issue Feb 25, 2021 · 2 comments

Comments

@zhoushuntong
Copy link

E:\work\polkadot-java\polkaj\examples\balance\src\main\java\Balance.java:1: 错误: 无法访问PolkadotHttpApi
import io.emeraldpay.polkaj.apihttp.PolkadotHttpApi;
^
错误的类文件: C:\Users\zhoushuntong.m2\repository\io\emeraldpay\polkaj\polkaj-api-http\0.4.0-SNAPSHOT\polkaj-api-http-0.4.0-SNAPSHOT.jar(io/emeraldpay/polkaj/apihttp/PolkadotHttpApi.class)
类文件具有错误的版本 55.0, 应为 52.0
请删除该文件或确保该文件位于正确的类路径子目录中。

FAILURE: Build failed with an exception.

@crow123
Copy link

crow123 commented Mar 7, 2021

update jdk8 to jdk11

@paulvi
Copy link
Contributor

paulvi commented Sep 8, 2021

Indeed root build.gradle says

targetCompatibility = '11'
sourceCompatibility = '11'

So JDK 11+ is required

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