What to do about the invalid configuration of java environment variables under win10

I have always configured environment variables under win7. I tried the configuration under win10 today, and it really went wrong.panic

Tried it, java -version is no problem, java is no problem

But javac always prompts that it is not an internal or external command, it is speculated that it should be a problem with the path

Finally tried it and found that there is a difference between win10 and win7.

The win7 environment variables are all in one, each separated by a semicolon, while win10 automatically branches without semicolons, so the environment variables are a bit different, and they are built in two lines.

Click New, copy %JAVA_HOME%\bin in, and then copy the following %JAVA_HOME%\jre\bin again, and then you're done.

Of course, if it is an absolute path, there is no problem, but it must be separated by two lines.

It is said on the Internet that there is a problem with Road King not using an absolute path. I tried it, even if the absolute path is separated by a semicolon, it will not work.

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324677186&siteId=291194637