Java4android "3" Java environment variable JRE

Source: Internet
Author: User

    1. The purpose of the PATH environment variable configuration
    2. CLASSPATH environment variable configuration of mud
    3. What support is provided by the Java JRE

These two files can be found when the 1:PATH environment variable is used to execute the Java.exe and Javac.exe commands. Java is mostly used by these two executable files. The value previously configured for the PATH environment variable is the path to the JDK installation.

The 2:CLASSPATH environment variable is the location where the class file and source file can be found when the command is executed. For example, execute Java hello.class, and Javac Hello.java (the following extensions are written for zone classification files and source files)

The environment variables for the previously configured classpath are.; is the meaning of the current path. For example, my hello.class in the E-disk Gmzjava below, execute this class file can be in the cmd inside such: First typing CD and then directly put Gmzjava folder into cmd, enter, so directly into the Gmzjava directory, then the hint is e:\ Gmzjava> this time enter Java Hello then the Hello.class file will be executed. Java.exe is found through path, hello.class through Classpath, which is the path under the current command line. This is e:\gmzjava>.

The 3:java JRE is the Java operating environment. Mainly include

1 Java Virtual machine

The purpose of the virtual machine is to have Javac compiled. Class code can be used across platforms. That is, the Java source code is compiled into a. class file by Javac, but the. class file can run on the platform of Windows, Apple, and whatever, because the Java virtual machine translates. class files into code that can be used by each platform. The virtual machine is also a translation work, without the programmer to consider the Java code written out can be a different platform to run.

2 Java Core class files

3 Other supporting documents

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.