What is a JDK?
A) JDK full name Java Development Kit Chinese Developer kit
b) JDK includes the JRE (Java Runtime Environment) Java Runtime Environment, a stack of Java tools, and a Java-based class library
Tools for Java:
java compiler: Javac.exe
Java Interpreter executor: Java.exe
1.JDK Download: Go to the official website download page, the URL is as follows:
Http://www.oracle.com/technetwork/cn/java/javase/downloads/jdk8-downloads-2133151-zhs.html
2. You must click Accept License agreement to download, select download according to system type
3. Next is to install the JDK, double-click the downloaded EXE file
4. Then install the JRE
5. Installation Complete
6. Configure Environment variables
Right-click Computer, properties, advanced system settings, environment variables, click the path variable, case-insensitive, no new
Copy the bin path of the JDK into the path variable
All Click OK
7. Check if the configuration is successful: windows+r open a command prompt, enter Java, enter Javac, and the following interface shows the configuration is successful.
8. Write the first Java program Hello world!
Create a new Notepad file
Change the prefix name to Java
Open with editor, write code:
public class Hello
{
public static void Main (String args[])
{
System.out.println ("Hello world!");
}
}
9. Compile: Go to the console, switch to the folder where the file is located, enter: Javac Hello.java
10. Execute, enter Java Hello
JDK download installation configuration, write the first Java program