A-1 Java Overview

Source: Internet
Author: User

2015-08-12 15:56:52

first, commonly used DOS Command

D: Enter drive letter Toggle

Dir (directory): Lists the files and folders in the current directory

MD (Make directory): Create directory

RD (remove directory): Deletes a directory, not a non-empty directory.

CD (change directory) changes the specified directory (enter the specified directory)

CD: Back to top level directory

Cd\: Go back to the root directory

Del (delete): Delete files, delete a bunch of suffix names like files *.txt

Exit: Exit DOS command line

CLS: (Clear screen) clear

Second, the Java cross-platform principle

Applications written in the Java language can be executed in different operating systems, implemented through the JVM, with the same translation principle.

So the Java language has good portability.

Third, JRE, JDE, JVM

JRE (Java Runtime Environment): Java Runtime environment, including core class libraries required for Java virtual machines (JVM J Ava V irtual M achine) and Java programs such as If you want to run a well-developed Java program, you only need to install the JRE in your computer.

JDK (Java Development Kit): Includes Java development tools and JRE. So with the JDK installed, you don't have to install the JRE separately. One of the development tools: the Compilation tool (Javac.exe) packaging Tool (Jar.exe) and so on.

Iv. download and installation of JDK

1. Download the JDK via Oracle website. http://www.oracle.com/. (x86 32-bit computer, x64 64-bit virtual machine)

2, installation recommendations, installation path do not have Chinese or special symbols. Tip When installing the JRE, you may not install it.

3, the installation of Detection: console input Java

JDK Directory:

/bin

4. Configure Environment variables

(1) Path environment variable configuration method

Cause: Javac and other commands can be run in any directory.

Create a new variable name: Java_home

Add variable values for Java_home: JDK installation directory

Modify the JDK directory in the PATH environment variable:%java_home%\bin;

(2) CLASSPATH environment variable configuration method

Cause: The class file can be executed in any directory.

Create a new variable name: classpath

Variable value: ".; %java_home%\lib;%java_home%\lib\tools.jar "

(3) Difference

The PATH environment variable records an executable file, such as an. exe file, and if it is not found, go to the paths that are configured in the PATH environment variable.

The CLASSPATH environment variable records the directory where the Java class's running files are located

(4) Configuration detection: Console input Javac

V. Introduction of development tools

1, Notepad

2, notepad++

3. Eclipse Integrated Development tools

4, MyEclipse

Vi. operating and operating principles of Java

Vii. FAQs

1, extension is hidden: open My Computer-organization-Folder Options-View

2, the file name and the class name best match

At compile time:

Javac Add file name + extension

Java post-Add class name

3. Strictly case-sensitive

4, error appears illegal characters: \65307 and so on is definitely the Chinese problem, punctuation must be English mode.

A-1 Java Overview

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.