Notes on errors that occur when installing the JDK and countermeasures that I have tried

Preface

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.

Text

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. ** **

[Tried]

--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

Afterword

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

Notes on errors that occur when installing the JDK and countermeasures that I have tried
[Summary] What I noticed and did when I was told that the Oracle JDK was paid
The story that did not disappear when I tried to delete mysql on ubuntu
This and that of the JDK
I tried installing CentOS 8 on ESXi 6.7
Avoid Java encoding errors that occur when running FitGen.exe on Japanese Windows
How to resolve errors that occur in the "Ruby on Rails" integration test
The story that I could not build after installing multiple Java on Windows
I tried installing docker on an EC2 instance
Bad Gateway came out when I tried to connect Grafana and InfluxDB on Docker
[Ruby] 5 errors that tend to occur when scraping with Selenium and how to deal with them
A story I was addicted to when getting a key that was automatically tried on MyBatis
I tried installing the Docker Integration plugin in IntelliJ
What I stumbled upon when installing Ruby on Ubuntu
When I set webpack.config.js to run vue.js on rails6, I got too many errors and grass
[Java] I tried to make a rock-paper-scissors game that beginners can run on the console.