A holistic concept of Java and installation deployment

Source: Internet
Author: User

    • Java Basic Concepts  
      JVM (Java Virtual machine) Java VMS are the core of Java's cross-platform, and Java's cross-platform implementation is to lay out the JVM in various systems. Then the Java app runs in the JVM, which is the equivalent of what I play with my system and what I have nothing to do with it. The
      JRE (Java Runtime Environment) Java Runtime Environment is the underlying environment in which a Java program runs, including the JVM, core class libraries, and related files, not including compilers. The
      JDK (Java Develop kit) Java SDK, available in various versions, can be downloaded from Oracle, and the JDK includes JRE,JRE including the JVM.
    • Java Development Environment installation (WIN10)
      • Download the installation package for the JDK, available in various versions of the Oracle website, with JDK and JRE installed in a directory
        < Em>ps: The installation directory cannot have spaces.
      • Configuring system environment Variables
        • new Java_home selection to JDK installation directory: C:\Java\jdk1.8.0_131
        • Add path Path   %java_home%\bin;%java_home%\jre\bin
        • add classpath .; %java_home%\lib;%java_home%\lib\tools.jar
          PS: Notice there's a point in front
        • Span style= "COLOR: #000000" > console with java-version test for installation success
    • Developing Java programs with text
      • Create a new text file HelloWorld.txt, change the suffix name to. java, open with Notepad, and enter the following code
         Public class HelloWorld {    publicstaticvoid  main (string[] args) {        System.out.print ("HelloWorld");}    }
      • Console, navigate to folder directory with CD
      • Compile the. java file into a byte code using the compiler Javac that comes with the JDK. class file input Javac Helloworld.java Enter
      • Then execute the input Java HelloWorld

A holistic concept of Java and installation deployment

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.