1 JAVA installed Download
https://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html
2. Download the installation file
3. Install the JDK
4. Installation JRE
5. installation
6. Establish JAVA_HOME environment variable
7. Establish running path
8. Check the version of java
These are the establishment of a Java runtime environment; Let me build your first Java program
I practice java editor is: Codeblocks
Enter the following code
class Main{
public static void main(String args[]){
System.out.println("HELLO WORLD");
}
}
1.System.out.println ( "HELLO WORLD"); (this is my italics)
2. I removed the public before class;
Here are the results to compile and run
1.javac compiler (if compiling the following program appears successful)
2.java is running
3. I was re-built two successful (my colleagues say that the problem of the interface, in the end the problem was I was not too clear)
reference
https://www.cnblogs.com/kangjianwei101/p/5621723.html
https://www.cnblogs.com/lqyy/p/9385796.html
https://blog.csdn.net/peng86788/article/details/81296882