Path (environment variable) is a pre-dos internal command that Windows continues to use today. When running a command, a command or file cannot be found locally and will be found in the directory of the Declaration.
In general, Java is used to run commands under the Bin folder in any directory. The Java Bin directory is declared to path.
Running the path command under DOS can be set or viewed. In Windows, set in system settings.
Common environment variables The Windows system%allusersprofile% locally returns the location of all user profiles. %appdata% Local returns the location by default where the application stores data. %cd% returns the current directory string locally. %cmdcmdline% Local returns the exact command line used to start the current Cmd.exe. The%cmdextversion% system returns the version number of the current command handler extension. The%computername% system returns the name of the computer. The%comspec% system returns the exact path to the command-line interpreter executable program. The%date% system returns the current date. Use the same format as the date/t command. Generated by Cmd.exe. For more information about the date command, see date. The%errorlevel% system returns the error code of the used command. Errors are usually indicated by a value other than 0. The%homedrive% system returns the local workstation drive letter that is connected to the user's home directory. Settings based on the home directory value. The user home directory is specified in Local Users and groups. The%homepath% system returns the full path of the user's home directory. Settings based on the home directory value. The user home directory is specified in Local Users and groups. The%homeshare% system returns the network path of the user's shared home directory. Settings based on the home directory value. The user home directory is specified in Local Users and groups. %logonsever% Local returns the name of the domain controller that validates the current logon session. The%number_of_processors% system specifies the number of processors installed on the computer. The%os% system returns the name of the operating system. Windows 2000 displays the operating system as WINDOWS_NT. The%PATH% system specifies the search path for the executable file. The%pathext% system returns a list of file name extensions that the operating system considers executable. The%processor_architecture% system returns the chipset architecture of the processor. Value: X86,ia64. The%processor_identifier% system returns the processor description. The%processor_level% system returns the model number of the processor installed on the computer. The system variable that returns the processor revision number for the%processor_revision% system. %prompt% returns the command prompt settings for the current interpreter locally. Generated by Cmd.exe. The%random% system returns any decimal digits from 0 to 32767. Generated by Cmd.exe. %systemdriThe ve% system returns a drive that contains the Windows XP root directory, which is the system root. The%SYSTEMROOT% system returns the location of the Windows XP root directory. The%temp% and%TMP% system and the user return the default temporary directory used by the application that is available to the currently logged-on user. Some applications require TEMP, while other applications require TMP. The%time% system returns the current time. Use the same format as the time/t command. Generated by Cmd.exe. For more information about the time command, see time. %userdomain% Local returns the name of the domain that contains the user account. %USERNAME% Local returns the name of the currently logged-on user. %UserProfile% Local Returns the location of the current user's profile. The%WINDIR% system returns the location of the operating system directory. java Setting Environment variables
New system Variable Java_home
Variable name: java_home
Variable value: The directory of the JDK, such as D:/java
Select an environment variable named "Path" in "System variables"
Double-click the variable to add the absolute path of the bin directory in the JDK installation path to the value of the path variable, separating it with the semicolon of the half-width and the existing path.
Variable name: Path
Added variable value:%java_home%\bin;%java_home%\jre\bin;
Java Foundation 1-path