Installing Java is not easy! Summary of precautions to finish perfectly in one time

You can do it by searching for "Java installation", right? ⇒ I was addicted to

If you want to study Java, the first thing everyone does is install Java. However, when I was prepared to say "I can do it if I googled somehow", I was really worried about the problem "I should have installed it in the proper order, but for some reason I can't run Java files". Specifically, at the command prompt, I kept saying "** javac is not recognized as an internal or external command (abbreviation). **". Before installing Java, I will explain ** 2 things that you absolutely must keep in mind **.

Note # 1: "JRE" appears at the top of the list, but "JDK" # must be installed.

If you search for "Java installation", it will appear at the top. image.png I think this page (as of November 2, 2019).

When opened, it looks like this. image.png Normally, I think that you can install Java on this page, and then you can write code and run it immediately, but ** No. ** ** ** You can download "JRE" on this page. ** **

JRE is for running applications written in Java (although I'm still not familiar with it). In other words, you cannot develop Java (write or run code) just because you installed it. ** It is different. ** ** To write Java code and get it to work, you need to have ** "JDK" ** installed.

JDK installation page

Install the JDK from the page you can follow the link above. I think this page will open. image.png Scroll down and scroll down image.png When you get here, ** click the "Accept License Agreement" radio button **. (Of course, please read the terms before clicking!) image.png Click to install it. Select and install the one that suits your computer system.

Note # 2: Don't worry when the installation is complete! There is another effort "setting the Path variable"!

Java doesn't work just by installing **. Since it is necessary to set the "Path variable", we will explain the procedure.

When the installation is complete, first ** Check the address of the "bin" file in the "jdk" file that you have just installed, and be sure to record it in Notepad on your computer. ** ** For Windows C:\Program Files\Java\jdk-13.0.1\bin I think it will be an address like.

The important thing is not to end up with the jdk file, but to make a note of the address of the ** "bin" file **. Also, since you will copy and paste it later, we recommend using a notepad on your computer as the recording medium. image.png

After writing down the address, this time Control PanelSystemSystem Advanced And click "Environment Variables" at the bottom of the window. image.png Click "Path" from "System Variables" at the bottom of the screen, and then click "Edit". image.png When a new window appears, click "New", paste the address you wrote down earlier (** Make sure that it ends with \ bin! **) in the field where you can write characters, and click "OK". Click. image.png

After that, I think that various pop-ups have been displayed by this point, so press "OK" on all of them to remove all pop-ups.

Then ** restart your PC **. This is because the newly added Path variable will not be recognized unless the PC is restarted.

After restarting, start "Command Prompt" and

javac -version If the version information is output by typing, ** installation is complete **.

↓ Like this ↓ image.png

Thank you for the installation!

Here's a summary of what I didn't do when installing Java. Please let us know in the comments if you say "I did it according to this page but it doesn't work!" I will do my best to think about the reason why it does not work and the solution!

Recommended Posts

Installing Java is not easy! Summary of precautions to finish perfectly in one time
Summary of how to implement default arguments in Java
Summary of problems that I could not log in to firebase
The milliseconds to set in /lib/calendars.properties of Java jre is UTC
How to increment the value of Map in one line in Java
[Java Servlet] The road of Senri is also one step to the first
Easy to make Slack Bot in Java
[java] Summary of how to handle char
[Java] [Maven3] Summary of how to use Maven3
Summary of good points and precautions when converting Java Android application to Kotlin
[Java] Is it unnecessary to check "identity" in the implementation of the equals () method?
Is it mainstream not to write the closing tag of <P> tag in Javadoc?
Cause of is not visible when calling a method of another class in java
Conditional branching of the result of SQL statement to search only one in Java
Summary of how to select elements in Selenium
[Java] Summary of how to abbreviate lambda expressions
Summary of how to use the proxy set in IE when connecting with Java
[Java] Basic summary of Java not covered by Progate ~ Part 1 ~
This is convenient! Summary of popular Java library + α
[Java Silver] Summary of points related to lambda expressions
Summary of knowledge required to pass Java SE8 Silver
Summary of Java communication API (1) How to use Socket
[Eclipse] Summary of environment settings * Updated from time to time
Summary of Java communication API (3) How to use SocketChannel
Summary of Java communication API (2) How to use HttpUrlConnection
A concise summary of Java 8 date / time APIs that are likely to be used frequently