+ 3
Why can't I open javac on my CMD?
I have already set my PATH variable on the User variables and set the value to C:\Program Files\Java\jdk1.8.0_101. I restarted the CMD and tried running javac but it just says it is not recognized. I tried re-setting the variable and instead of writing the value i browsed it to be certain i made no typos, restarted cmd and still nothing. I even restarted my laptop but I just can't get it to work. Please help
6 Respuestas
+ 5
nevermind finally found what went wrong. In the Value of the PATH variable there is something missing. it should read C:\Program Files\Java\jdk.1.8.0_101\bin. That bin was the reason it didn't work. Hope this helps someone with the same problem.
+ 1
yes, we have to select the path first but you can also set it permanently by following steps
1.Open "this pc" properties .
2.click on advanced settings.
3.click on environmental variables.
4.click on edit.
5.copy the path of bin from installation folder.
6.past it after the existing paths
7.use " ; " to separate paths.
note- do not edit any existing paths.
+ 1
I did everything right but the javac command opens and closes immediately by itself... please what could be causing that. Thanks
0
see the true path
0
thanks. useful!