in http://o racle.com/ , search jdk Download your desired version, personal suggestions download JDK1.7 version is better, because the latest version of the JDK1.8 version is just out, as a beginner, in learning problems may not be convenient to solve (only personal opinion for reference). Click Unzip to install, you can. Http://www.oracle.com/technetwork/java/javase/downloads/index.html
JDK Download website
650) this.width=650; "title=" 0.jpg "style=" Float:none; "alt=" wkiom1effxdimo_gaajxffpbvu0089.jpg-wh_50 "src=" http:/ S5.51cto.com/wyfs02/m01/84/16/wkiom1effxdimo_gaajxffpbvu0089.jpg-wh_500x0-wm_3-wmp_4-s_1272033064.jpg "/>
650) this.width=650; "title=" 1.jpg "style=" Float:none; "alt=" wkiol1effxgcqu96aagw9zbssm4986.jpg-wh_50 "src=" http:/ S5.51cto.com/wyfs02/m02/84/15/wkiol1effxgcqu96aagw9zbssm4986.jpg-wh_500x0-wm_3-wmp_4-s_3775709153.jpg "/>
650) this.width=650; "title=" 2.jpg "alt=" wkiom1effagr1q5uaags6e83uxa032.jpg-wh_50 "src=" Http://s3.51cto.com/wyfs02 /m02/84/16/wkiom1effagr1q5uaags6e83uxa032.jpg-wh_500x0-wm_3-wmp_4-s_1200576346.jpg "/>
Open the Bin folder in the JDK, copy the path of the Bin folder, remember that it can not contain Chinese symbols and Chinese characters, because this may affect the environment variable settings, resulting in the computer can not be compiled and run Java programs. Paste the copied path into the new text file.
650) this.width=650; "title=" 3.jpg "style=" Float:none; "alt=" wkiom1effbyydgrqaaf9xwnqkoy224.jpg-wh_50 "src=" http:/ S5.51cto.com/wyfs02/m01/84/16/wkiom1effbyydgrqaaf9xwnqkoy224.jpg-wh_500x0-wm_3-wmp_4-s_3891248624.jpg "/>
650) this.width=650; "title=" 4.jpg "style=" Float:none; "alt=" wkiol1effb3znuqkaah8pm-kt1y978.jpg-wh_50 "src=" http:/ S1.51cto.com/wyfs02/m02/84/15/wkiol1effb3znuqkaah8pm-kt1y978.jpg-wh_500x0-wm_3-wmp_4-s_2928681577.jpg "/>
650) this.width=650; "title=" 5.jpg "style=" Float:none; "alt=" wkiom1effb3jddg2aaboi-zugk4220.jpg-wh_50 "src=" http:/ S1.51cto.com/wyfs02/m02/84/16/wkiom1effb3jddg2aaboi-zugk4220.jpg-wh_500x0-wm_3-wmp_4-s_1069280954.jpg "/>
Right-click Desktop Computer icon-Properties-environment variables-Advanced system settings-environment variables-System variables Click path-Edit-Press the home key on the keyboard to reach the top of the Variable Value text box-paste the Bin folder path you just copied to the front, and the semicolon key under the English input method ";" Separate before and after two address, remember is in English input Method-OK.
650) this.width=650; "title=" 6.jpg "alt=" wkiol1effgaruoulaaa076jpnq8141.jpg-wh_50 "src=" Http://s2.51cto.com/wyfs02 /m02/84/15/wkiol1effgaruoulaaa076jpnq8141.jpg-wh_500x0-wm_3-wmp_4-s_3497247689.jpg "/>
650) this.width=650; "title=" 7.jpg "style=" Float:none; "alt=" wkiol1effeeqk2wbaaf3tx4dgxu921.jpg-wh_50 "src=" http:/ S2.51cto.com/wyfs02/m00/84/15/wkiol1effeeqk2wbaaf3tx4dgxu921.jpg-wh_500x0-wm_3-wmp_4-s_973104765.jpg "/>
650) this.width=650; "title=" 8.jpg "style=" Float:none; "alt=" wkiom1effeec15dkaadqlesbp9u235.jpg-wh_50 "src=" http:/ S3.51cto.com/wyfs02/m00/84/16/wkiom1effeec15dkaadqlesbp9u235.jpg-wh_500x0-wm_3-wmp_4-s_2608631070.jpg "/>
650) this.width=650; "title=" 9.jpg "style=" Float:none; "alt=" wkiom1effejz51oeaag9cc5nu60056.jpg-wh_50 "src=" http:/ S3.51cto.com/wyfs02/m00/84/16/wkiom1effejz51oeaag9cc5nu60056.jpg-wh_500x0-wm_3-wmp_4-s_2238282878.jpg "/>
Right-click Taskbar-run (shortcut key Win+r)-Enter "cmd"-OK, open DOS command to detect if the environment variables required for Java are set up.
650) this.width=650; "title=" 10.jpg "style=" Float:none; "alt=" Wkiom1efflyh6llqaacwbdpbrw8716.jpg-wh_50 "src=" http:/ /s3.51cto.com/wyfs02/m02/84/16/wkiom1efflyh6llqaacwbdpbrw8716.jpg-wh_500x0-wm_3-wmp_4-s_741299978.jpg "/>
650) this.width=650; "title=" 11.jpg "style=" Float:none; "alt=" Wkiol1effl3hbeygaabwdehxxma429.jpg-wh_50 "src=" http:/ /s2.51cto.com/wyfs02/m01/84/15/wkiol1effl3hbeygaabwdehxxma429.jpg-wh_500x0-wm_3-wmp_4-s_3486990254.jpg "/>
650) this.width=650; "title=" qq20160713000954.jpg "style=" Float:none "alt=" Wkiol1effl7z8uvwaacczd7ujfo280.jpg-wh_ "Src=" Http://s3.51cto.com/wyfs02/M00/84/15/wKioL1eFFl7z8UVwAACCzD7UJFo280.jpg-wh_500x0-wm_3-wmp_4-s_ 3267119976.jpg "/>
Enter the root directory of the folder where the JDK is installed (example D: Carriage return), enter java-version carriage return, detect if the JDK is installed successfully, and the JDK installation version appears.
650) this.width=650; "title=" 12.jpg "style=" Float:none; "alt=" Wkiom1effrxsgszzaacito_kaiy438.jpg-wh_50 "src=" http:/ /s1.51cto.com/wyfs02/m00/84/16/wkiom1effrxsgszzaacito_kaiy438.jpg-wh_500x0-wm_3-wmp_4-s_3007219368.jpg "/>
650) this.width=650; "title=" 13.jpg "style=" Float:none; "alt=" Wkiom1effrbx_5qtaach8q8znlu905.jpg-wh_50 "src=" http:/ /s4.51cto.com/wyfs02/m01/84/16/wkiom1effrbx_5qtaach8q8znlu905.jpg-wh_500x0-wm_3-wmp_4-s_2348560403.jpg "/>
650) this.width=650; "title=" 14.jpg "style=" Float:none; "alt=" Wkiol1effreqgesyaacq9pvuav8332.jpg-wh_50 "src=" http:/ /s4.51cto.com/wyfs02/m02/84/15/wkiol1effreqgesyaacq9pvuav8332.jpg-wh_500x0-wm_3-wmp_4-s_4157706737.jpg "/>
650) this.width=650; "title=" 15.jpg "style=" Float:none; "alt=" wkiol1effrfbf_ 2paadhjgvgk4q680.jpg-wh_50 "src=" Http://s4.51cto.com/wyfs02/M01/84/15/wKioL1eFFrfBF_2pAADHjGVgK4Q680.jpg-wh_ 500x0-wm_3-wmp_4-s_3893153783.jpg "/>
-
input javac-version detects if the JRE is successfully installed, The JRE is installed in the same installer as the JDK, in order to detect whether a Java file can be run. Similarly, the installation version number appears.
650) this.width=650; "title=" 16.jpg "style=" Float:none; "alt=" Wkiom1effufqve8eaadndbp8hli476.jpg-wh_50 "src=" http://s5.51cto.com/wyfs02/M02/84/16/ Wkiom1effufqve8eaadndbp8hli476.jpg-wh_500x0-wm_3-wmp_4-s_3026983649.jpg "/>
650) this.width=650; "title=" 17.jpg "style=" Float:none; "alt=" Wkiom1effufsl8lsaadsqvkdkxu698.jpg-wh_50 "src=" http://s5.51cto.com/wyfs02/M01/84/16/ Wkiom1effufsl8lsaadsqvkdkxu698.jpg-wh_500x0-wm_3-wmp_4-s_3917980635.jpg "/>
-
Now, we can do simple Java file compilation in Notepad.
In the D drive, right click on the new folder named "Person", and then create a new text file, modify the file name "person", beginning with the English capital letters, cannot appear in Chinese words, the file suffix is changed to ". Java".
650) this.width=650; "title=" 18.jpg "style=" Float:none; "alt=" Wkiom1eff02tbyyfaagdjt8do-a868.jpg-wh_50 "src=" http:/ /s1.51cto.com/wyfs02/m02/84/16/wkiom1eff02tbyyfaagdjt8do-a868.jpg-wh_500x0-wm_3-wmp_4-s_3408192657.jpg "/>
650) this.width=650; "title=" 19.jpg "style=" Float:none; "alt=" Wkiol1eff07sowekaaetaelgsdm126.jpg-wh_50 "src=" http:/ /s5.51cto.com/wyfs02/m00/84/15/wkiol1eff07sowekaaetaelgsdm126.jpg-wh_500x0-wm_3-wmp_4-s_2824872639.jpg "/>
650) this.width=650; "title=" 20.jpg "style=" Float:none; "alt=" Wkiom1eff0-a0gheaaen9isyvkm736.jpg-wh_50 "src=" http:/ /s4.51cto.com/wyfs02/m00/84/16/wkiom1eff0-a0gheaaen9isyvkm736.jpg-wh_500x0-wm_3-wmp_4-s_3260084155.jpg "/>
Open in Notepad, enter the main frame of the Java Program "public class (file name) {}" carriage return, press the TAB key, enter "public static void Main (string[] args) {}", enter the Java output statement in this curly brace " System.out.println (); ", enter the text characters you want to display in parentheses.
650) this.width=650; "title=" 21.jpg "style=" Float:none; "alt=" Wkiol1eff4ggw-wiaabqhhowjdu025.jpg-wh_50 "src=" http:/ /s4.51cto.com/wyfs02/m00/84/15/wkiol1eff4ggw-wiaabqhhowjdu025.jpg-wh_500x0-wm_3-wmp_4-s_3928219557.jpg "/>
650) this.width=650; "title=" 22.jpg "style=" Float:none; "alt=" Wkiom1eff4hxmfsiaabudunrsza231.jpg-wh_50 "src=" http:/ /s4.51cto.com/wyfs02/m00/84/16/wkiom1eff4hxmfsiaabudunrsza231.jpg-wh_500x0-wm_3-wmp_4-s_4172651055.jpg "/>
650) this.width=650; "title=" 23.jpg "style=" Float:none; "alt=" Wkiol1eff4kb_qbdaacge6jo5-g325.jpg-wh_50 "src=" http:/ /s2.51cto.com/wyfs02/m01/84/15/wkiol1eff4kb_qbdaacge6jo5-g325.jpg-wh_500x0-wm_3-wmp_4-s_486733523.jpg "/>
650) this.width=650; "title=" 24.jpg "style=" Float:none; "alt=" Wkiom1eff4ltdlbkaacwqp2nk6q895.jpg-wh_50 "src=" http:/ /s3.51cto.com/wyfs02/m01/84/16/wkiom1eff4ltdlbkaacwqp2nk6q895.jpg-wh_500x0-wm_3-wmp_4-s_3215918970.jpg "/>
after compiling the text, save and run the file in cmd. Open DOS command, that is, right-click the taskbar-run (shortcut key Win+r)-Enter "cmd"-ok, enter the root directory of the file "D:" carriage return, and then enter "CD person" to the computer released in this root directory for folder lookups.
650) this.width=650; "title=" 10.jpg "style=" Float:none; "alt=" Wkiom1eff8hbl43faacwbdpbrw8156.jpg-wh_50 "src=" http:/ /s1.51cto.com/wyfs02/m01/84/16/wkiom1eff8hbl43faacwbdpbrw8156.jpg-wh_500x0-wm_3-wmp_4-s_2600898870.jpg "/>
650) this.width=650; "title=" 11.jpg "style=" Float:none; "alt=" Wkiol1eff8ggn8l5aabwdehxxma628.jpg-wh_50 "src=" http:/ /s2.51cto.com/wyfs02/m02/84/15/wkiol1eff8ggn8l5aabwdehxxma628.jpg-wh_500x0-wm_3-wmp_4-s_3702563410.jpg "/> 650) this.width=650; "title=" qq20160713000954.jpg "alt=" wkiol1eff-uqphbbaacczd7ujfo009.jpg-wh_50 "src="/HTTP/ S1.51cto.com/wyfs02/m00/84/15/wkiol1eff-uqphbbaacczd7ujfo009.jpg-wh_500x0-wm_3-wmp_4-s_3710070869.jpg "/>650 ) this.width=650; "title=" 12.jpg "alt=" wkiol1eff_vqqrfzaacito_kaiy105.jpg-wh_50 "src=" http://s2.51cto.com/wyfs02/ M01/84/15/wkiol1eff_vqqrfzaacito_kaiy105.jpg-wh_500x0-wm_3-wmp_4-s_728428372.jpg "/>
650) this.width=650; "title=" 25.jpg "style=" Float:none; "alt=" Wkiom1eff8krlxqnaaclekf-2bo791.jpg-wh_50 "src=" http:/ /s1.51cto.com/wyfs02/m02/84/16/wkiom1eff8krlxqnaaclekf-2bo791.jpg-wh_500x0-wm_3-wmp_4-s_222424647.jpg "/>
Enter the Java Person.java command, which, if compiled successfully, produces a Person.class bytecode file in the Person.java file sibling directory.
650) this.width=650; "title=" 26.jpg "alt=" wkiom1efgbdhmxdjaafq-gu9ois602.jpg-wh_50 "src=" http://s5.51cto.com/ Wyfs02/m01/84/16/wkiom1efgbdhmxdjaafq-gu9ois602.jpg-wh_500x0-wm_3-wmp_4-s_3905830703.jpg "/>
-
finally enter "Java person" carriage return, the text character you entered will appear.
650 "this.width=650;" title= "27.jpg" alt= " Wkiom1efgd_tiazsaadewssjqmc677.jpg-wh_50 "src=" http://s3.51cto.com/wyfs02/M02/84/16/wKiom1eFGD_ Tiazsaadewssjqmc677.jpg-wh_500x0-wm_3-wmp_4-s_2961294344.jpg "/>
The simple use of Notepad to develop the Java program is complete.
Java Basic JDK environment variable setting and using Notepad for simple Java program development