Visual studio code error JAVA_Home is not set and no 'java' command could be found in your path

preview_player
Показать описание
windows 11:
important: if after you follow this video the problem is still not solved, please double check if you install the correct version of Java JDK, some components need another version of JAVA JDK.
1. install Java JDK
2. open settings
3 search environment variables
4. under advanced click environment variables
5. add C:\Program Files\Java\jdk-17.0.2\bin to Path
6. add new variable name as JAVA_HOME, value: C:\Program Files\Java\jdk-17.0.2
7. restart visual studio code
Рекомендации по теме
Комментарии
Автор

You were the only one that could actually help. Even the documentation and blogs stated to leave the Home/bin and some had /Home/bin/java. Nothing would work. Its not clear why stopping at the /Home directory worked at all since it didn't point directly to an file contents, just another file /bin. So I don't know. But thank you.

SonnyWest
Автор

THANK YOU SO MUCH, idk why everyone else was asking to change the system variables

shambhaviingole
Автор

why thank you, sir!
while the solution was simple enough, i wouldn't have found it without your video ^-^
have a great day!

JessiesGengar
Автор

Appreciate you, thanks for your excellent tutorial. Your VDO has really fixed the problem.

pithchaya
Автор

THANK YOU SO MUCH MISTER YOU HELPED ME SO MUCH I CANT THANK YOU ENOUGH THANK YOU BROTHER THANK YOU I LIKE AND SUB

Daxus.
Автор

Thank u so mutch. I almost lost hope solution this problem because i cudnt find solution in internet. Usuallu i work in android studio so i didn't know how to change version java in vs code.

МагестЛоил
Автор

Thank u now i can make maven projects (:

AlxBst
Автор

Thank you very much. Got my problem fix

miguellopes
Автор

Man very helpful, thank you so much for share!

mateofranciscoaguilarpined
Автор

Thanks! This video has really helped me

rmendezsve
Автор

i just want to create a java maven project. but fucking cant

roywilliamvermeulen
Автор

after search for 4 day this video help me

tcb-jung