I am trying to set up the jdk on my new laptop and am running into a problem. Typing javac gives me javac
is not recognized as an internal or external command,operable program or batch file."
I have set java_home
to C:\\Program Files\\Java\\jdk1.8.0_66
and have added %java_home%\\bin\\
to the path variable. However, this still does not work. I checked other questions on stack overflow but found nothing. Please help.
Check the following things :
When you open the environment variable settings, you will find two blocks - one is 'User Variables for Administrator' and the other is 'System variables'. Make sure you are setting the path in the 'System variables' section
Try putting a hard-coded path in the PATH variable. I have mine as follows :
C:\\Program Files\\Java\\jdk1.7.0_71\\bin;
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.