1. Install JDK Software
1. download the software.
2. Install software.
3. Configure software environment variables.
Path = (add the directory address where your JDK is installed to the front and add a semicolon (OK ).
Note: The Role of path is to run java programs,
Let the corresponding program file actively find the java JDK execution file.
Set path = [content] set your software configuration address in DOS.
The setting is only for the current DOS window environment.
The difference between the Path in the Path before and after the Path:
Run the program first to find the directory you set.
When running the program, you need to first find the root directory of the system and find the appropriate directory path, that is
The path you set.
Ii. % dynamically obtain the variable path.
For example, Java_Home = do not include a semicolon in the path. It's just a pure path.
Path = % Java_Home % bin;
Note: Java_Home is used to change the JDK path. For example, drive C and drive d tomorrow.
In the application, we only need to change the Java_Home variable. The Path variable does not need to be changed.
.
Select an easy change. Do not select a complicated and error-prone change.
3. Temporary configuration, for example, when testing with someone else's operating system.
You can use the doscommand set to view or modify it.
1. set
2. set path = the jdk path you need; % path %. Add a temporary path.
This command is only valid for the current DOS window.