Write a simple Java program with Notepad
The first step:
Install the JDK, and set the environment variables in place.
Desktop-Computer (right-click)-Properties-Advanced system settings-environment variable-path-after variable value, and JDK installation path Plus (path is C:\Program files\java\jdk1.8.0_20\bin;);
Step Two:
Create a new Notepad on the desktop-change the suffix name to Java (Test.java)-Edit (right-click)-Enter the following code:
public class Test {public static void main (String [] args) {
System.out.print ("I want to become a god");
}
}
Step Three:
Switch paths to the desktop (CD C:\Users\pc\Desktop) in the DOS interface
Fourth Step:
Input Javac Test.java//compile, the desktop will generate a Test.class file after compiling
Enter Java Test//Run
The results are as follows:
650) this.width=650; "src=" http://img.blog.csdn.net/20150721035744088 "alt=" here write a picture describing "title=" "/>
This article is from the "Sanghaidan blog column" blog, please be sure to keep this source http://10602803.blog.51cto.com/10592803/1683050
Write a simple Java program with Notepad