。 javase------First Knowledge of Java

Source: Internet
Author: User

My teacher told me that fate favors a tiandaochouqin.

Sometimes in the dream of more than a dream, after all, it is only dreams,

Instead of down-to-earth steps forward to the practical.

--------------------------------------------------------------------------------------------------------------- -------

First knowledge of Java

--------------------------------------------------------------------------------------------------------------- -------

The Java------is a fully object-oriented language, independent of the platform.

------J2SE Standard Edition (Java Foundation)

Java EE Enterprise Edition (primarily for Web application development)

J2ME small version (such as apps on your phone)

------Language Features: cross-platform (principle: Different platforms have different JVMs)

-------JVM is a Java virtual machine.

--------------------------------------------------------------------------------------------------------------- -------

--------------------------------------------------------------------------------------------------------------- -------

The first action you have to take to learn any language is to build the environment.

--------------------------------------------------------------------------------------------------------------- -------

Environment Building for Java language

------JDK (Java Development Kit)------Java Development Tools (development)

------JRE (Java Runtime) (run)------The core class libraries required by Java programs

------Java Virtual Machine (JVM)

--------------------------------------------------------------------------------------------------------------- -------

Note: If you are running a well-developed Java program, just install the JRE on your computer.

--------------------------------------------------------------------------------------------------------------- -------

In the JDK directory, the development tools are in the Bin folder.

Javac.exe Compilation Tool

Jar.exe Packaging Tools

--------------------------------------------------------------------------------------------------------------- -------

Configuring Environment variables

------Purpose: More convenient to use Java development tools.

--------------------------------------------------------------------------------------------------------------- -------

Note: Percent dynamic gets the value of an existing environment variable.

--------------------------------------------------------------------------------------------------------------- -------

In addition, environment variables can be temporarily configured on the DOS command line.

cd\ root directory set + environment variable name =

such as: set path = d:\haha;%path%

This method of configuring the environment variable is only valid in the current window of the DOS command line,

When you close the DOS command line and reopen the new DOS command line, it reverts to the original environment variable.

--------------------------------------------------------------------------------------------------------------- -------

In the DOS command line

------Javac Abc.java (javac. EXE compile source file, generate Abc.class bytecode file)

------Java ABC (Java.exe run, call JVM virtual machine)

--------------------------------------------------------------------------------------------------------------- -------

-----------------------------------------------------------------------------------

Written in 2014.12.13. Qingdao Chengyang. Lyq

。 javase------First Knowledge of 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.