Java Virtual machine

Source: Internet
Author: User

First, Java development

Java was launched by Sun in 1995 and was acquired by Oracle in the 2010 years after its inception.
The dissemble is added Wow, logo like a cup of coffee, meaning delicious coffee, Java programming like a cup of delicious coffee.

Second, Java features

Java is an analytic programming language, can not directly manipulate the computer, need to install Java Virtual machine, Java source code compiled after the formation of bytecode, through the virtual machine issued instructions to operate the computer.

It is because of the existence of Java Virtual machine that the development of Java language is a cross-platform programming language.
C + + is a direct operation of the computer after compilation.

Third, the Java related concept of virtual machine installation

Jdk:java Development Toolkit Java Development Kit
Jvm:java VM Java Virtual machine
Jre:java Running Environment Java Runtime Environment

1. Download JDK

JDK Download Link: www.oracle.com
Computer right-click property to find the number of computer systems, download the corresponding JDK version.

Remember to tick Accepet license Agreenment (accept consent) when downloading.
Where windowsX86 is 32 bits; windowsX64 is 64 bits.

2. Installing the JDK

Unzip the downloaded JDK, click Install, (also copy, install registration software for free) tick the development tools. Click Next to install.

After installing the JDK, the following files and folders function as shown:

Four, the environment variable configuration. 1. DOS entry

Press Start menu +r== "cmd" Enter, enter DOS and then enter Java, shown below, prove that the Java development tools installed successfully

2. Configuration of path and CLASSPATH environment variables

The computer compiles the Java source code, needs to use the Javac.exe in the JDK, and tells the computer Javac path.
There are 2 ways to compile and run written code in DOS:
(1) Pull the Javac.exe into DOS, spaces, and then pull the code into DOS, enter.

(2) Enter the drive letter in DOS
In order to compile and run the code more quickly, we need to set path and classpath.
Path refers to the path where Java's compiler Javac.exe is located.
Classpath refers to the path where the compiled. class file resides.
Set the method to computer properties = + Advanced settings = "Environment variable =" path.
Paste the Jdk\bin directory at the very front of the path and separate it with ";".
Click New, enter the variable name classpath, the variable value is the compiled. class file path.

Statement: The material used in this column is written by the VIP students of the Kay Academy, who has the right to be anonymous and has the final right to interpret the article; The Edith Academy is designed to promote students to learn from each other on the basis of public notes.

Java Virtual machine

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.