The tools you need:
"Jdk-8u5-windows-i586.exe" (XP cannot install http://www.cnblogs.com/cxloge/p/3986689.html)
Http://www.oracle.com/technetwork/java/javase/downloads/index.html
"Babellanguagepack-eclipse-zh_4.4.0.v20140623020002.zip" (Chinese language Pack)
http://www.eclipse.org/babel/downloads.php
"Eclipse-standard-luna-r-win32.zip"
http://www.eclipse.org/downloads/
Related documents Download: Http://pan.baidu.com/s/1qWugWNU
JDK Environment Configuration
JDK Installation Path
C:\Program files\java\jdk1.8.0_05\
(There is no Chinese in the path, there is a space to carefully configure the point, or "C:\Java\jdk1.8.0_05\")
JDK installation Complete After the installation of the JRE, so the JRE can be installed or not installed ... No impact.
Because there's already a JRE inside the JDK.
The difference between JDK and JRE
JDK------>java Development Kit.
Simply put, the JDK is a developer-oriented SDK that provides a Java development environment and a running environment. The SDK is software Development Kit generally refers to a software development package, which can include function libraries, compiler programs, and so on.
JRE------>java Runtime enviroment
Refers to the Java Runtime Environment, which is intended for users of Java programs, not developers.
Configuring Environment variables
Java_home
Java_home points to the installation path of the JDK
C:\Program files\java\jdk1.7.0//This is the installation path of your JDK and can be replaced
CLASSPATH
The purpose of setting up classpath is to tell the Java execution Environment which directories can be used to find the classes or packages that you need to execute the Java program.
.; %java_home%\lib\dt.jar;%java_home%\lib\tools.jar; Remember, there's a "." in front.
Path
PATH environment variable Originally in Windows, you just need to modify it so that he points to the JDK bin directory
%java_home%\bin;%java_home%\jre\bin;
Note that the "XXX user variable" is not the same as "system variable" and we want to configure "system variable".
There is a semicolon ";" No.
// Helloworld.java Public class helloworld{ publicstaticvoid main (string[] args) { System.out.println ("HelloWorld!") ); }}
Run Helloworld.java with Eclipse compilation
Building a Java development environment