java environment variable configuration 01

win + R keys, character input cmd recall dos interface.

operating Explanation
Letter name: Switching letter. E: a carriage return, a handoff to the E drive.
to you View the contents of the current path.
cd directory Into the single-level directory. cd itheima
cd … Back to a previous directory.
cd directory 1 \ 2 directory ... Into the multi-level directory. cd itheima \ JavaSE
cd \ Fallback drive letter directory.
cls Clear the screen.
exit Exit the Command Prompt window.

Environmental JDK installation [master]

Introduced

Why do you want to install JDK?

JDK is Java's core product, the product must have before they can use the Java programming language to develop Java programs, and executed.

Detailed steps

a. Quguan network 11 to download the installation package JDK

b. Double JDK the package installation interface exe

  • You may have been installed before JDK want to unload. .
  • Note: The installation directory do not contain spaces and the Chinese directory , the computer is very sensitive to the spaces and Chinese! Examples: D: \ soft \ java \ jdk-11.0.4

summary

JDK steps to finish building.

09. install JDK environment variables [master]

Introduced

After the JDK installation is complete, in fact, the operating system does not know the specific JDK installation to where the JDK can not access the command javac and java command directly.

The purpose configuration environment variable is to tell the operating system installed JDK to where javac command to compile and execute the command java command to install and to where.

Detailed

Environment variable to find the process -> Right Computer, click Properties, click Advanced System Settings, click Environment Variables.

We need to configure the following two environment variables:

a.JAVA_HOME

He tells the operating system where the JDK installed.

举例:JAVA_HOME D:\soft\java\jdk-11.0.4

b.PATH

Tells the operating system command tool JDK javac and java Where?

举例:PATH D:\soft\java\jdk-11.0.4\bin

Another PATH configurations:

举例:PATH %JAVA_HOME%\bin

test

JDK really detect if installed correctly?

  • Enter the java and javac commands have prompted
  • Enter java -version to see the version with the tips of their own installed version are the same.

summary

After installation environment variables can be accessed directly JDK and JDK operation command: javac, java.

Published 34 original articles · won praise 16 · views 304

Guess you like

Origin blog.csdn.net/qq_41005604/article/details/104982256