Sunday, January 12, 2020

How to install Java/JDK on Windows 10

To install Java on Windows 10:

1. Go to https://www.oracle.com/technetwork/java/javase/downloads/ and download Java SE Development Kit (in my case "jdk-13.0.1_windows-x64_bin.exe")
2. Simply install the exe

Configuration: It needs to set Path and Classpath
1. Go to System window (Control Panel -> System and Security -> System)
2. Click "Advanced system settings" to go to System Properties window
3. Click "Environment Variables"
4. In <System variables> set the followings as below (The value depends on your installation folder/path):
          JAVA_HOME = C:\Program Files\Java\jdk-13.0.1
          Path = C:\Program Files\Java\jdk-13.0.1\bin
          CLASSPATH = .;C:\Program Files\Java\jdk-13.0.1
5. Open command prompt -> Type the following command and press Enter
java -version

No comments:

Post a Comment