Java JDK11在Windows 10问题上安装
我在Windows 10(Citrix的Vmachine)上有Java JRE 17预装。
通过使用Java -version在命令提示符中调用它,我得到了已安装的版本的响应。
由于我需要在计算机上安装JDK 11,因此我从Oracle进行了安装,并安装了JDK8 EXE文件并执行了它。安装成功。所以我有JRE17和JDK11。
我已将为JRE17的路径设置为JRE17的路径的环境变量(系统变量),再到JDK11的新目标路径。
我也将JRE17设置的路径变量也更改为JDK11。
单击“确定”,然后在系统属性窗口上再次确定,以保存我所做的更改。
重新打开了命令提示。在使用Java -Version调用提示命令之后,我得到了响应,该响应并未被认为是内部或外部命令(我的JDK11)。
现在,在我尝试重新设置Java_home的环境变量和通往JRE17的路径之后,我再次得到响应,该响应未被认为是内部或外部命令(我的JRE17在更改之前正在工作。我正在接受良好的护理,在更改和设置环境变量时不要犯错,甚至尝试将我的机器重置为希望之后
。需要确保,java_home设置为我的JDK的位置,这就是我安装JDK11的原因(按照指示)。
可以帮助我解决此问题,并给我一些有关我在做什么的指示错误?
I had on my Windows 10 (Vmachine in Citrix) Java JRE 17 preinstalled.
By calling it in the command prompt with java --version, I got the response of the version that was installed.
Since I needed to install JDK 11 on my machine, I proceeded to the installation from Oracle and installed the JDK8 exe file and executed it. The installation was successful. So I had JRE17 and JDK11.
I have changed the environment variable (System Variables) that was set for JAVA_HOME from the path of JRE17, to my new destination path of JDK11.
I have changed the Path variable that was set for JRE17 to JDK11 as well.
Clicked OK and again OK on the System properties window to save the changes I made.
Reopened the command prompt. After then calling the prompt command with java --version, I got the response, that is not recognized as an internal or external command (my JDK11).
Now, after I tried to set back the environment variable of JAVA_HOME and the Path to JRE17, I again get the response that is not recognized as an internal or external command (my JRE17 that was working just before the change. I was taking good care, not to make a mistake while changing and setting the environment variables and even tried with resetting my machine in hope it would work afterwards.
So what I actually need later on, is Apache Maven 3.8.5. For that installation, I needed to make sure, JAVA_HOME is set to the location of my JDK, which was the reason why I was installing JDK11 (as instructed).
Could anyone assist me with this matter and give me some instructions on what am I doing wrong? I spent already 12 hours of installing, deinstalling, reinstalling, resetting paths and it seems that I am missing something.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论