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

不支付java 11,会报错! #10

Open
tgl123 opened this issue May 21, 2020 · 4 comments
Open

不支付java 11,会报错! #10

tgl123 opened this issue May 21, 2020 · 4 comments

Comments

@tgl123
Copy link

tgl123 commented May 21, 2020

会报tools.jar这个包找不到
Could not find artifact jdk.tools:jdk.tools:jar:1.7 at specified path C:\Java\jdk-11.0.7/../lib/tools.jar -

@lurocdong
Copy link

会报tools.jar这个包找不到
Could not find artifact jdk.tools:jdk.tools:jar:1.7 at specified path C:\Java\jdk-11.0.7/../lib/tools.jar -

您好,这个问题你解决了吗?

@Jasmine-liang
Copy link

会报tools.jar这个包找不到
Could not find artifact jdk.tools:jdk.tools:jar:1.7 at specified path C:\Java\jdk-11.0.7/../lib/tools.jar -

你好,我是把整个编译环境从java11降到java8, 而且在pom.xml文件里添加了Apache hbase client 的依赖:Maven Repository: org.apache.hbase,就可以使用运行起来了。我也遇到过这个报错,猜想是需要导入对应编译环境的依赖,比如说spring4all里面打包的hbase需要的jdk环境是7,对应的编译环境也就应该是java7,而Hbase, Hadoop目前还不支持java11(就是你的编译环境,所以自然找不到jdk7),可以试试看把编译环境降到java7.
或者像我一样直接导入支持java8环境的hbase依赖:)

@JThink
Copy link
Member

JThink commented Mar 11, 2021

可以试下Java 1.8

@Jasmine-liang
Copy link

可以试下Java 1.8
对, it works well:)

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

4 participants