java and java -version take effect, javac does not take effect

Solution: Please use system variables to set jdk environment, do not use user variables



Phenomenon: When using an absolute path, there is no problem; but when using a relative path, javac does not take effect.

Problems with setting environment variables

You can use the following command to view

echo %path%

As shown in the figure below, the relative path has not been converted into an absolute path (abnormal appearance)


normal appearance


Guess you like

Origin blog.csdn.net/Simple_Man_Just/article/details/80380047