First, Java Getting started with development
Java Overview
Java divided into three technology platforms: Javase (Standard Edition, Java Basic Library), Java EE (Enterprise Edition, Technology Platform), Javame (small edition, small product, embedded device)
Java the characteristics of language
Simple
Object oriented
Safety
Java does not support pointers, and all access to memory must be implemented through instance variables of the object
Cross-platform
Support Multithreading
Multiple tasks can be executed concurrently in a program
JDK with the JRE
JDK (Java Development Kit) is a set of development environments provided by Java, including Java compilers, JRE (Java Runtime Tools), Java class libraries, and so on.
The JRE (Java Runtime Environment) is a set of operating environments provided by Java, which contains only Java run tools and no Java compilation tools.
JDK Introduction to the catalogue
bin directory , storing some executable programs. Javac.exe (Java compiler), Java.exe (Java Runtime Tool), Jar.exe (Java Packaging tool), Javadoc.exe (document Generation tool).
Javac.exe is a Java compilation tool that compiles well-written Java files into Java bytecode files ( executable java programs )
Java source file has the extension. Java, such as "Helloworld.java"
Java bytecode files generated after compilation have the extension. class, such as "Helloworld.class"
Java.exe is a Java runtime tool that launches a Java Virtual machine (JVM) process that is equivalent to a virtual operating system that runs a bytecode file (. class file) generated by the Java compiler.
DB directory , a pure Java implementation, open source small database, introduced from JDK6.0, very lightweight, and support all the JDBC 4.0 specifications, learning JDBC can be used.
Jre directory, Java Runtime Environment Java Program Runtime Environment, contains Java Virtual machine, runtime class package, Java Application Launcher.
Include directories, since the JDK is implemented through C and C + +, it is necessary to introduce a C-language header file at startup, which holds the header files.
Library directory, which holds the Java class Library.
Src.zip file, which is a compressed file of the Src folder, the source code for the JDK core class is placed in SRC, which allows you to view the source code of the Java base class.
Second, configure environment variables
The cmd console can execute Java programs directly by configuring environment variables.
PC-Properties-Advanced system settings
Environment variables
New user variable, variable name path, variable value (the bin file path in the installation JDK file)
From the beginning of Java, Java overview, Java Configuration environment variables