1) Download the JDK
1) Visit the official Oracle website or OpenJDK website to download the JDK installer for your operating system.
2) Make sure to download the version that matches your operating system (Windows, macOS, or Linux)
2) Run the Installer
1) Once the JDK is installed, choose the installation directory for the JDK.
2) Set the Environment Variables-
- JAVA_HOME (example - C:\Program Files\ Java\jdk-16)
Add the JDK's bin Folder to the PATH environment variable.
- PATH (example - %JAVA_HOME%\bin)
3) Verify the Installation
Open the terminal or Command Prompt to check the Java version.
Example - java -version
No comments:
Post a Comment