The other day I took a break from programming school due to influenza. Therefore, in order to make up for the shortage of lectures, it is a record of the struggle to install the JDK on the home PC and prepare the Java development environment.
We will proceed with reference to this site.
https://eng-entrance.com/java-install-jdk-windows
OS is Windows 7 64bit After installation, proceed as instructed.
Check the version using the command prompt. ** "Not recognized as an internal or external command, operable program or patch file." **
After installation, you need to set environment variables. Two types, "Path" and "JAVA_HOME". Path is set as a system environment variable with; (semicolon) to separate it from other paths. JAVA_HOME is new, so set it normally. ** Not recognized. ** **
To try anything for the time being, first set the Path setting position to the end (right or bottom) of the Path of the system environment variable. No good. Set to the very beginning (left or top). No good. Both. No good. Return to the very end.
Set JAVA_HOME in Path as well. ** Not recognized. ** ** Leave without erasing. By the way, I referred to this site.
https://techfun.cc/java/windows-jdk-pathset.html
It was written on some site that Path can be set even with user environment variables, so try it. Newly set from user environment variables. ** Not recognized. ** ** Leave without erasing.
Check if the contents registered in Path are incorrect. Since it was Program Files, I put it back in Program Files (x86) and left a space. After all, I give up once with this. ;C:\Program Files\Java\jdk1.8.0_201\bin\javac.exe\
Let's put a reboot here. There is a possibility that it is better to do it one by one every time you change the setting.
When I groan that it doesn't work, I notice that there are multiple Java.exes in the program search. Try to uninstall the old version.
** The version is displayed. ** **
--Path setting position of system environment variable --Set JAVA_HOME in Path --Set Path in user environment variable --Make Program Files with a space in the path Program Files
To be honest, I don't know what caused it and what worked. But I'll keep it for my notes and for if someone gets lost in trouble.
Recommended Posts