Configuring the JDK download, install and environment variables

JAVA study of preparatory work:

Configuring the JDK download, install and environment variables

1. JDK download

Java also known as C + ±, developed by Sun Microsystems, the Sun has been Oracle (Oracle) acquired.
Recommended Google Chrome browser
Download: https://www.oracle.com/technetwork/java/javase/downloads/index-jsp-138363.html
Here Insert Picture Description
Here Insert Picture Description
check the License Agreement the Accept
X86 32-bit, X64 is 64, 64 32 bits can be downloaded and 64
after the download is complete installation can be installed in the C drive may be freely selected.

2. Configure environment variables

On some of the old version of the book is arranged on the JRE (such as my book), but more than JKD1.5 not need to configure the environment variables, JRE will automatically search for class files and related jar files in the current directory, so do not ignore it.
1. Open My Computer, right click and choose "Properties", select "Advanced System Settings", select "Environment Variables"
2. Copy the directory where you installed the JDK
Here Insert Picture Description
select 3. Under System Variables in a first step to open the environment variables in the "New "
variable name JAVA_HOME
variable value F: \ java (the second step of pasting directory)
4. Path editing, the cursor is moved to the front, the knock% JAVA_HOME% \ bin; (JDK installation directory can be used, but after the JAVA_HOME variable to facilitate learning)
must pay attention to the difference between Chinese and English sign
after configuration can test whether JDK configuration is successful:
Win + R or in the start menu bar, search box, enter "cmd", enter java -version, will appear as shown Fig.
Here Insert Picture Description
Or enter java, there will be some commands.
If the 'java' is not an internal or external command appears, indicating that the environment variable configuration problems, you need to go back and check the
note symbol not wrong, if you can properly run the configuration was successful, the next step can be learned.
JAVA just started learning, we encourage each other!
Here Insert Picture Description

Released two original articles · won praise 1 · views 28

Guess you like

Origin blog.csdn.net/Firelearn/article/details/103979508