I did the procedures in the environment variables but the javac command does not work.
@bigown, in fact, is even duplicate of this: https://answall.com/q/96317/28595
– user28595
This way you don’t have much to help, but it’s clear you didn’t do everything you needed to. You have to report how everything is in your environment and see where the error is.
"C: \ program files \ java \ jdk1.xx.xx_xx \ bin \ javac.exe" From the command prompt. You can also tell which executable (if any) is being used with the command:-- for %i in (javac.exe) do @echo %~$PATH:i This is a clean trick similar to what and / or where commands on some UNIX-like operating systems.
If the problem is not classpath, then there is no way to know with this image alone. Try to do the procedure from scratch. Reinstall the JDK, then add it to the Windows environment variables, as the link explains, restart the pc and try running again.
– user28595
It is much easier if you post the text in the question instead of these images. Also, instead of posting comments with links, it would be easier if you edit the question. Here’s the tip.
@bigown, in fact, is even duplicate of this: https://answall.com/q/96317/28595
– user28595
This way you don’t have much to help, but it’s clear you didn’t do everything you needed to. You have to report how everything is in your environment and see where the error is.
– Maniero
@Articuno can be even
– Maniero
http://prntscr.com/g43w5d - Classpath
– Lucas Chaves
http://prntscr.com/g43wdl - Java Home
– Lucas Chaves
http://prntscr.com/g43wnm - Path
– Lucas Chaves
@moustache ta ai a print
– Lucas Chaves
"C: \ program files \ java \ jdk1.xx.xx_xx \ bin \ javac.exe"
From the command prompt. You can also tell which executable (if any) is being used with the command:--for %i in (javac.exe) do @echo %~$PATH:i
This is a clean trick similar to what and / or where commands on some UNIX-like operating systems.– Lucas Chaves
If the problem is not classpath, then there is no way to know with this image alone. Try to do the procedure from scratch. Reinstall the JDK, then add it to the Windows environment variables, as the link explains, restart the pc and try running again.
– user28595
It is much easier if you post the text in the question instead of these images. Also, instead of posting comments with links, it would be easier if you edit the question. Here’s the tip.
– Victor Stafusa