Before you learn Java

Source: Internet
Author: User

Java Basics

    • Download JDK

JDK (Java Development Kit Java Development Kit)

Official website:

www.oracle.com See oracle.html

  • installation Jdk

     

    Fool-mounted, next.

    Recommendation: The installation path should not have Chinese or special symbols such as spaces.

    The JRE can choose not to install.

     

    Specific steps:

    (1) Double-click jdk_1.8.0_32bit.exe to enter the following interface

    (2) Click "Next"

    This step has been configured to achieve The "JRE can choose not to install " purpose

    (3) Click "Next" to enter the installation interface

    after this step, the installation is complete.

(1) The javac.exe in the bin directory under the JDK installation directory is java 'sjava the language of the compiler ", by executing the program, generate the corresponding class type of file

(2) The Java.exe in the bin directory under the JDK installation directory is java 's "Start Java Virtual Machine program, by executing the program,the Java virtual machine loads The file of the appropriate class type and interprets the execution Java Program.

3 Configuring the environment variable path

look at the results :

Precautions:

The Eclipse and JDK version types remain consistent , either - bit

Path/classpath/java_home

1. PATHenvironment variables. The function is to specify the command search path,IThe command line executes commands such asJavaccompilingJavaprogram, it will go toPATHThe path specified by the variable to see if the appropriate command program can be found. We need to putJDKunder the installation directorybinThe directory is added to the existingPATHvariable,binThe directory contains frequently used executables such asJavac/java/javadocWait, set it up.PATHvariable, you can execute it in any directoryJavac/javaand other tools.

2. Classpath environment variable. The function is to specify the class search path, to use the class that has already been written, if you can, of course, find them, JVM classpth jdk installation directory of lib Dt.jar and tools.jar set to classpath

3. Java_home Environment variables. It points to the JDK's installation directory,eclipse/netbeans/tomcat and other software by searching java_home Variable to find and use the installed jdk.

The role and relationship of JDK,JRE,JVM
(1) function
JVM: Securing the Java language across platforms
Jre:java the operating environment of the program
Development environment of Jdk:java program
(2) Relationship
jdk:jre+ Tools
jre:jvm+ Class Library

Before you learn Java

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.