Configuration of three variables java_home path classpath in Windows
Join it Software Technology Discussion QQ: 228249641 clicks
1: 1: java_home: indicates the JDK installation path, for example, C:/jdk1.5.0 _ 04.
2: path: the environment variable exists in Windows. You only need to modify it to point it to the JDK bin directory, in this way, you do not need to enter a large string of paths when compiling and executing programs in the console. The setting method is to keep the content of the original path and add it; % java_home %/bin3: class_path: class file imported in, ".; "starts with classpath = .; % java_home %/LIB; % java_home %/lib/tools. jar can be directly set using the BAT file
Set java_home = C:/jdk1.5.0 _ 06
Set Path = % java_home %/bin; % PATH %
Set classpath =.; % java_home %/LIB; % java_home %/lib/tools. Jar
II:
A. Right-click my computer (or click system in the control panel)-> properties-> advanced-> environment variable, and create a variable named java_home in the system variable, the variable value is the JDK installation path. example: java_home = C:/Program
Files/Java/jdk1.5.0 _ 05
B. Add; % java_home %/bin in Path
C. Add.; % java_home %/lib/tools. jar; % java_home %/lib/dt. jar in front of classpath;