Reputation: 9
I have tried as many answers available here to set java path. I have placed the JAVA HOME,JDK HOME and JRE HOME PATHS in the system environment variables but java still cannot be found using the command prompt "where" nor can it be executed using "java". pls help
Upvotes: 0
Views: 1524
Reputation: 298
Try running the following in the command promt.
set path=%path%;C:\Program Files\Java\jdk1.8.0_102\bin
Change the path based on the java version you are using. If its still not working then try the following: Try running it in cmd (administrator mode). Try restarting the cmd.
You should be able see the java path in here.
echo %path%
Upvotes: 1