2019.12.06 java foundation

The JRE : runtime environment (included JVM (Java Virtual Machine) - Java virtual machine and core class libraries)

The JDK : JAVA language Software Development Kit (Java Development Kit)

Dos common command line command:

dir: lists files and files in the current directory folder

md: Create a directory

rd: delete the directory

cd: Enter the specified directory

cd ..: return to the parent directory

cd \: return to the root directory

del: delete files

exit: exit the dos command line

 Configuration environment variable:

  1. After installing the computer environment variables JDK configuration properties → → → → Advanced Settings Advanced System Environment Variables

    JDK installation and configuration environment variable
  2.  

    → New system variable JAVA_HOME variable.

    Fill in the variable value of jdk installation directory (I was E: \ Java \ jdk1.7.0)

  3.  

    System variables Path variable → Edit → Looking

    In the last input value of the variable% JAVA_HOME% \ bin;% JAVA_HOME% \ jre \ bin;

    (Note that the original value of the variable Path end there; number, if not, the first input; number enter the code above)

    JDK installation and configuration environment variable
  4.  

    New system variable CLASSPATH variable →

    Fill in the value of the variable;.% JAVA_HOME% \ lib;% JAVA_HOME% \ lib \ tools.jar (Note that the preceding bit)

    System variable configuration is completed

    JDK installation and configuration environment variable
  5.  

    Verify the configuration is successful run cmd enter java -version (space between java and -version)

    If the version information is displayed as shown in FIG successfully install and configure.

    JDK installation and configuration environment variable

Guess you like

Origin www.cnblogs.com/l1314/p/11993245.html