How to Install Java on Windows 10 (2020)? Set JAVA_HOME and PATH Environment variables | Latest JDK

Опубликовано: 30 Сентябрь 2024
на канале: SrcCodes
4,937
210

Wondering, how to install java jdk on windows 10 ( with java_home ) ? And set JAVA_HOME and PATH for Latest JDK 15? Write, compile & run your first Java code to verify the Java installation. Step by step java beginners guides to download Oracle JDK and installation of Java on Windows.

"unable to install java there are errors in the following switches ?"

Detailed steps to write, compile and run a Java Hello World Example: https://www.srccodes.com/java-hello-w...

0:30 How to check jdk version
java -version

1:03 Download Java JDK
Download Oracle JDK (Windows x64 Installer) from https://www.oracle.com/java/technolog...

2:00 Install Java
Run the downloaded JDK binary installer and follow the installation wizard.

4:55 Set JAVA_HOME
Set Windows system environment variables for JAVA_HOME & PATH

7:00 Verify java version
Verify Java is Installation & JDK configuration
java -version
echo %JAVA_HOME%
echo %PATH%
7:52 Java HelloWorld Example
Copy & paste the sample Java HelloWorld code in the HelloWorld.java file

public class HelloWorld {

/**
* @param args
*/
public static void main(String[] args) {
System.out.println("Hello World!");
}

}

8:17 How to compile a java program
Compile the HelloWorld java file
javac HelloWorld.java

8:32 How to run a java program
java HelloWorld


#Java #JavaInstallation #JavaJDK15 #SrcCodes #Java15 #Javatutorial #Windows10

~~~~~~~~~~~~~~~~~~~~~
Follow Me on:
Facebook:   / abhijit.gh0sh  
Twitter: https://twitter.com/intent/follow?sou...
Linkedin:   / abhijitghosh  
~~~~~~~~~~~~~~~~~~~~~
For more tutorials subscribe & follow
Youtube: https://youtube.com/srccodes?sub_conf...
Facebook:   / srccodes  
Twitter: https://twitter.com/intent/follow?sou...
Website: https://www.srccodes.com

Please Like and Subscribe to support this channel.