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 **.
If you search for "Java installation", it will appear at the top. I think this page (as of November 2, 2019).
When opened, it looks like this. 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.
Install the JDK from the page you can follow the link above. I think this page will open. Scroll down and scroll down When you get here, ** click the "Accept License Agreement" radio button **. (Of course, please read the terms before clicking!) Click to install it. Select and install the one that suits your computer system.
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.
After writing down the address, this time Control Panel
→ System
→System Advanced
And click "Environment Variables" at the bottom of the window.
Click "Path" from "System Variables" at the bottom of the screen, and then click "Edit".
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.
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 ↓
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