Install JDK SE 8.2.71 on Windows x86/x64
- Download JDK SE 8.2.71 from https://www.oracle.com/java/technologies/javase/javase-jdk8-downloads.html
Download JDK SE 8.2.71Check Accept Oracle License and click Download jdk-8u271-windows-x64.exeSign-in Oracle Account, if don’t have an Oracle Account will create ones.Save File2. Installing JDK SE 8.2.71
Execute file jdk-8u271-windows-x64.exeClick NextReview JDK Path and Click NextWaiting for JDK InstallReview JRE Path and click NextWaiting for JRE InstallClick Close3. Configure JDK SE 8.2.71
Press WIN + R, type SystemPropertiesAdvanced and Click OKClick Environment Variables…Click New… in System variablesType JAVA_HOME as name and C:\Program Files\jdk1.8.0_271 as values and click OKWill see JAVA_HOME variableSelect Path in System variables and click Edit…Click New and type %JAVA_HOME%\bin and click OKSelect C:\Program Files (x86)\Common Files\Oracle\Java\javapath and click Delete and click OKClick OKPress WIN + R, type cmd and press Ctrl + Shift + Enter (to run as Administrator)Type java -version press Enter and notepad press EnterWrite sample code HelloWorldpublic class HelloWorld{
public static void main(String[] args){
System.out.println("Hello world");
}
}
Save file name HelloWorld.java and type as All Files (*.*) and click SaveType javac HelloWorld.java press Enter and type java HelloWorld