windows java路径问题,在Windows上安装Java 11 OpenJDK(系统路径问题)

Java 11 had recently arrived and, as everybody knows, this version has no installation file.

To install Java without installer I, of course, had set my system settings PATH and JAVA HOME to the address of the folder where my Java 11 was unzipped (advised by accepted reponses to similar questions).

The only thing is that all those advices about system settings make no effect whatsoever on my machine:

Checking with a command line outputs my old Java 9 version

With Java 9 removed from the folder, command line does not recognise any Java at all.

So, is there actually any way to install this version?

Thanks for future answers and for not marking my question as a duplicate (for the reason explained above)

解决方案

The problem resided in the format of the path line:

My path included multiple entries, I was putting Java at the end of the line and the change was not working

But when I placed it right at the start of the path line, Java 11 got accepted and started to function alright on my Windows.

For other users facing a similar issue:

The root of the problem was that, as Klitos Kyriacou rightly pointed out, my path included other entries that had a word 'java' in their names. When placed before Java 11 in the classpath, those entries were invalidating my adding of the java version.

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值