JDK: Java Development Kit (Development Tool Pack)
JRE: Java Runtime Envoironment (operating environment)
JVM: Java Virtual Machine (virtual machine)
1. Download jdk8 and find the download address (
(Online download needs to be clicked and consent agreement)
2. Download the corresponding version of the computer, x64
3. Double -click to install (change the installation path)
4. Configure environment variables
Settings -> Search-> Environment variables
System variables -> New
Variable name: java_home
Value value: installation path
Configure Path variable
System variables -> PATH -> Double -click -> New
%JAVA_HOME%\bin
%JAVA_HOME%\jre\bin
Test whether JDK is successfully installed
Open CMD-> Java-Version
1. Delete the installation directory of Java
2. Delete java_home
3. Delete the directory of Java under PATH
4.java-version
new folder
Modify the file name: .java
public class hello{
public static void main (String[] args){
System.out.print("Hello World!");
}
}

My first C language program Hello World The declaration of integer variables is int, such as: Int a Single precision floating point declaration with float, such as Float B; Double-precision floating-p...
package main :Define the name, you must specify which package belongs to this file in the source file, such as: package main. Package main represents a separately executable program, each GO applicati...
I recently learned the SPING framework. SPING is a lightweight IOC (control reversal) and AOP (facing cut programming) framework. It will be very easy and convenient to use it to help my Java developm...
The public class is the main class. The source file naming must be consistent with the main class. A source file can only have one main class. But there can be many other classes. For example, class A...
1. Program development step description Three steps in Java program development:Write, compile, run. 2. Write the Hello World source program 2.1 Create a new text file. The full file name is changed t...
Eclipse development File-> New-> Java Project, in the prompt box, enter the Project Name, such as Hello, then next, finnsh. Hello will appear in the directory project, as shown below Right-src, ...
No matter what language to learn, write the first program should start from Hello World. Although only a few simple lines of code, but just learning Java as a rookie, when I see myself writing program...
Hello World Create a new folder to store the code In the folder below to create a new suffix .java java files, such as HelloWorld.java [Note To open the display system extension] [Note to write code c...
** The first program "Hello World" **...
The first Java program: Hello World! Create a new folder to store the code Create a new java file The file extension is .java Hello.java [Note] The system may not display the suffix name, you need to ...