1.JRE and JDK
The JRE (Java Runtime Environment), as its name implies, is the Java Runtime Environment, which contains the Java virtual machine, the Java base Class library. The software environment that is required to run a program written in the Java language is provided to the user who wants to run the Java program.
The JDK (Java development Kit), which is available to Java developers, includes the Java SDK and the JRE. So with the JDK installed, there's no need to install the JRE separately.
In simple terms: jre=jvm+ class Library, Jdk=jre+java development tools. Java programs developed using the JDK to run to the JRE
2.Download and install the JDK
jdk Download:http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html
Of course, the almighty Baidu also line:
Fool-mounted, next.
Recommendation: The installation path should not have Chinese or special symbols such as spaces.
When prompted to install the JRE, you can choose not to install.
3.path interpretation under the JDK installation directory
Open the Java installation directory
The first thing you see is the bin directory, which is the repository for compilers and tools.
Then look down and see the Include folder, which is the file used to compile the local method.
Looking down, there is a JRE folder, which is the file that holds the Java Runtime environment.
Look down, there is a Lib folder, this is the storage of class library files.
Finally see a src.zip, extract the src folder, this is the repository of library source files.
4.Introduction to Java Development tools
Writing Java programs can use a lot of tools, Notepad, editplus,eclipse,myeclipse, beginners recommend the use of MyEclipse, do not consider so many environmental problems, fool-type installation can be used, not recommended Chinese.
Click I download MyEclipse10
One of the Javase series-building the Java environment