Java Basics Summary

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.