Introduction to Java
Maximum features---cross-platform
Installation of the Java compilation environment http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html
Select the JDK download installation for Windows x64
Understanding the directory structure of the JDK
Java_home:c:\program files\java\jdk1.8.0_102
JRE---java Virtual machine
Bin---command management tools
Src.zip Compressed Package---The source code provided by the Java Development Kit
Compile----A. Enter the directory where the Java files are located
Drive letter:
CD Entry Directory
CD: Up-level directory
cd\ root directory
Enter the directory where the Java files are located
Compiling: Using the Javac command
Setting environment variables (variables used in the operating system)
Set Path (Java_home\bin)
Any. EXE can be started via set PATH environment variable (e.g. QQ startup)
Compile the Java file directory E:\work\java 1.java in Lesson;
1.java
Class A
{
public static void Main (string[] args)
{
}
}
The A.class file appears after compilation, that is, the compilation is complete
Run:
No results due to Java program not writing content
PATH environment variable always has effect to set in system
My Computer--Properties--Advanced system settings--environment variables--NEW
Javac has been effective.
Development tools:
ecilse/netbeans/intellij/Notepad----"Editable notepad editplus (download link http://pan.baidu.com/s/1o80a5b8
User:gnu
Serial:918a8-20dd8-44za1-b0w4a-13t66
)
Java programming with Notepad and cmd (compiled from install ide---run)