Java Basics (1)-JDK installation

Source: Internet
Author: User

To learn the Java language, first to build a Java development environment, including the development environment and the operating environment, it is necessary to download the JDK installation package to build

: Link: https://pan.baidu.com/s/1msUuHYRfIjxyPnwZEksNRw Password: SSV4

First, let's take a look at the JDK.

JDK: Java Development Kit-java Development Kit
--java Development tools:
compiler, debugger, Javadoc.exe. Java.exe,javac.exe
--JRE (Java Runtime Environment)--java Runtime Environment
--JVM (Java Virtual machine):
Note Again note:JDK installation path must not have Chinese characters.

A feature of the Java language: cross-platform (operating system). Because each platform has its own version of the JVM, and any version of the JVM will execute

How the Java language works:
Java source files (. java)
|
|----compilation process (Javac.exe)
| Javac source file name (be sure to bring the extension)
| Javac Demo.java
| Java bytecode file (. Class)
|
|---Open JVM, run bytecode file
| Java bytecode file name (never write extension)
| Java Demo
The program starts to run.

The next step is formally installed, after the download is finished double-click Open, follow the prompts for the next installation, in the selection of the installation path can be kept default, you can also specify the path but note that the path you specify cannot have Chinese.

After the installation is complete, the next step is to configure the environment variables, here to WIN10 system computer for example (Win7 and similar), right click My Computer, properties, advanced system settings, environment variables, open can see there are two, The above is the user environment variable (only valid under the current user), the following is the system environment variable (all users are in effect)

The next step is to start configuring environment variables.

First we create a new java_home environment variable, the path is the installation path of the JDK we just installed, the path location as long as the bin in the directory is OK.

After that, a new classpath () is created, and the path and installation paths have been

Finally, to configure the path, open path, click New, new two are:

Click OK to configure the completion (jdk1.5 can be configured directly after path, the path directly into the new, do not need java_home and classpath, but some other software needs to have those two variables, if only with eclipse can not be configured)

Open cmd to see if the match is successful, enter after entering java-version can view the version number, and then in the input javac appear content, indicating that the configuration was successful.

Article Tags: java

Java Basics (1)-JDK installation

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.