简体   繁体   中英

'java' is not recognized even though its set to PATH (windows 11)

I have installed java jdk.18.0.0.1, and even set it to PATH. The command 'java' is also available when I open the command prompt the regular way (from start>search cmd>open cmd or win+R>type cmd>enter). It even works when I type cmd in the url section of the file explorer and open the command prompt in that location. But when I open command prompt from the right-click context menu, trying to use java gets me a message as if I haven't installed java yet.

context menu

Any idea how to solve this, or if its even solvable?

(I'm quite salty that I moved to win 11 for the easy access to cmd from the context menu like Linux always had, but now that is causing me more trouble...)

This is my Windows specifications

ok, I already installed java 15.0.2 versionjava 15.0.2 版本

I'll again install java 18 because of your question is 'java' is not recognized even though its set to PATH (windows 11)

follow me

  1. step I download jdk 18.0.2 现在我要安装

  2. step在环境变量中设置路径

  3. 安装bin文件夹路径复制并设置

  4. 检查版本

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM