1.1 The Java language Cross-platform principle (JVM)
The Java language features cross-platform, where the cross-platform mainly refers to the operating system, see the diagram below:
Because of the JVM, the same Java program can be executed in three different operating systems. This realizes the cross-platform of Java program, also known as Java has good portability.
1.2 Java language (JDK&JRE)
Why does the JDK include a JRE?
First, the development of completed procedures, always need to run to see the effect;
Second, and most importantly, the JDK development tools are actually written in the Java language applications, in order to facilitate the use of the package as an. exe file, if there is no JRE, then these tools can not run.
The relationship between JRE&JDK
JRE:JVM + class Library;
JDK:JRE + Java Development tools.
1.3 Java language (JDK download and installation)
JDK Download, official website: https://www.oracle.com/index.html
JDK Installation & Configuration
JDK Installation Flowchart Solution:
Next
Installed by default to the C:\Program files\java\jdk1.6.0.21\ directory, you can customize the installation path with the Change button.
Next
Installation in progress ... The copy file ends and the installation is complete.
The next dialog box is to ask if you want to install the JRE (Java Runtime enviroment). Java runtime This is optional because the JDK already contains two parts of the Java development environment and the runtime Environment (JRE). If you only run existing Java programs and don't develop Java programs, you only need to install the JRE, because the JRE is small in size.
So you don't need to install to click the "Cancel" button.
If you click Next
Installation is complete.
1.4 Java Language (command line introduction)
Help: For more information about a command, such as:
1.5 Java language (environment variable configuration)
JDK Environment configuration:
Open My Computer--"Right click Properties-" Advanced system settings--"Environment variables--system variables need to be added in path inside the installation path of the JDK is as follows:
Verify that the certificate is configured successfully
Note:
If you have multiple JDK versions installed on your system, you can view them through javac-version
Set Temporary configuration mode
Summary:
Java Basics Summary