Java4android (Basic concept)

Source: Internet
Author: User

1. Configuration of environment Variables : Path key value: Location of bin folder

Classpath key value:.

2. First HelloWorld:

public class hello{public static void Main (String args[]) {System.out.print ("Hello world!");}}

3. What are environment variables?

Environment variables are usually used in the operating system to specify some parameters that the operating system needs to run, typically a series of key-value pairs

For example, some classic variable values, windir: is the installation location of Windows; OS: The version of the operating system; The core number of NUMBER_OF_PROCESSORS:CPU.

where the PATH environment variable works:

The path environment variable is the operating system external Command search path (the path value is a series of paths that are searched and executed at the command line when the file is executed)

The CLASSPATH environment variable is the class file search path where the value is (. ) represents the current directory

What's in 4.JDK?

Commands in Bin:java such as, Javac Java.exe

Examples in the Demo:sample:java

Content of the Include:c language

Jre:java Run-time environment

Package files required by the Lib:java

Src.zip:java part of the JDK source file

5. What is a JRE?

The JRE is the Java Runtime Environment, the Java Run environment, which includes the following sections:

Java Virtual Machine (JVM) Java Vsan, a computer that is virtual by software

Java platform core class file;

Other support files.

SOURCE file---Compiler---->class file---virtual machine----> Individual operating system executables

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.