failed to run command ‘java‘ : No such file or directory

When running a project locally, it prompts that the java command cannot be executed. The
insert image description here
jdk environment variable has already been configured. I executed it in the cmd environment again java -version, but I really couldn’t find the corresponding java execution file.
insert image description here
I checked the java.exe corresponding to the C drive. The file is a shortcut link, and its corresponding target address java_homeis inconsistent with the path I configured. Delete the shortcut and it will be ok
insert image description here
insert image description here

Guess you like

Origin blog.csdn.net/qq_35448165/article/details/129713861