JDK
's official website: www.oracle.com
Download: JDK
choose to download, and then select java, select the version, download JDK 1.7 64 bit (download computer based on the number of bits):
the JDK-7u21-Windows-x64.exe
installation:
the JDK 1.7 release to the appropriate file directory, double-click the installation
receiving the terms of the next step
of development tools, modify the installation path, the next default path: (C: \ Program files \ Java \ jdk1.8.0_77 \)
to install with common software, the next step, In the end, close enough.
When installed, JDK and JRE are installed together.
jre use the default installation path
configuration environment variable:
Control Panel -> Advanced System Design -> Advanced -> Environment Variables
System Variables -> New
variable name: JAVA_HOME
variable value: just copy the installation path (bin file parent directory)
(D: \ on JAVAJDK \ jdk \ bin) level for the -> (D: \ JAVAJDK \ jdk)
to determine the
system variables -> Path
Edit Path, Path inside the catalog, are based on ";" be separated.
After the last directory is not a semicolon.
In the back plus a directory ";" and insert the installation path bin between two semicolons
(not the last directory)
D: \ JAVAJDK \ the JDK \ bin
determine (the write path dead when modify the path, both to modify the value of the JAVA_HOME)
(also inside the modified path path)
or:% JAVA_HOME% \ bin
determined (more flexible, when the path modification time, modify the value of the JAVA_HOME like)
(two percent enclosed, represents a reference JAVA_HOME variable path)
(using the JAVA_HOME one ligand is most standard method)
test:
window + R & lt:
cmd
command w:
Java
If the number of parameters appears, the installation
or input:
java -version
If there is:
C: \ the Users \ ten thousand a> java -version
the Java Version "1.8.0_102"
the Java (TM) SE Runtime Environment (Build 1.8.0_102-B14)
the Java HotSpot (TM) 64-Bit Server-VM (build 25.102-b14, mixed mode )
also said that the installation was successful. (1.8.0_102: the version number)
: If there is
not an internal or external command, operable program or batch file
is the environment variable installation errors. Go back and check the environment variable configuration
after completing modify environment variables, be sure to restart cmd window, restart cmd window,
modify environment variables to take effect
this, download and install the JDK is over
if jdk installed, but when the eclipse starts, error:
The Java Runtime Environment A (the JRE) or the Java Development Kit (the JDK) the MUST BE the Available
in the Order to the Java Virtual Machine No RUN WAS the Eclipse found the After Searching at The.
Following locations:
E: \ the Test \-the Eclipse-JEE-luna-Win32-SR2 x86_64 \ eclipse \ jre \ bin \ javaw.exe
javaw.exe in your vurrent the PATH
can view the eclipse in the eclipse directory (eg: eclipse-jee-luna-SR2 -win32-x86_64 \ eclipse),
whether there is jre \ bin \ javaw.exe directories and files, and if not, you can manually add good.
(javaw.exe files can be found in the bin directory of the jdk), eclipse can be properly opened.
More formal approach is not the solution, in order to prevent an unknown problem can be solved with the second option:
Open eclipse root directory eclipse.ini file, add two lines at the top:
-vm
D: \ jdk_jre \ bin \ javaw .exe (this is the absolute path of your installed javaw.exe)
////////////////////////////////////////////////// //////////////////////////
commonly used DOS commands:
dir directory to view the current file and subfolder under the folder directory
cd change directory to change the current folder
md make directory is created in the current folder
rd remove directory to delete the current folder
cls clear screen clear screen
to change your disk d: c:
the Tab key to help automate file name or folder
command before or after the up and down arrow keys to display the