I know for sure how to solve your problem, go to the search and put it in the environment, a prompt will appear and ask you to "change the environment variables for your account", click on it, and a window will appear. there will be current paths that run on top (you must have a version of jdk running on a mine equal to 1.8), and paths will also be selected at the bottom. select (at the bottom) the path to java and delete it, then click "OK." he should work
source share