Assignment:1: Install Java On Windows 10
Assignment:1: Install Java On Windows 10
Download the latest Java Development Kit installation file for Windows 10 to have the latest features and bug fixes.
Using your preferred web browser, navigate to the Oracle Java Downloads page.
On the Downloads page, click the x64 Installer download link under the Windows category. At the time of writing this article
Java version 18 is the latest long-term support Java version.
After downloading the installation file, proceed with installing Java on your Windows system.
2. Choose the destination folder for the Java installation files or stick to the default path. Click Next to proceed.
3. Wait for the wizard to finish the installation process until the Successfully Installed message appears. Click Close to exit the wizard.
Set Java environment variables to enable program compiling from any directory. To do so, follow the steps below:
4. Under the System variables category, select the Path variable and click Edit:
5. Click the New button and enter the path to the Java bin directory:
6. Click OK to save the changes and exit the variable editing window.
Some applications require the JAVA_HOME variable. Follow the steps below to create the variable:
1. In the Environment Variables window, under the System variables category, click the New… button to create a new variable.
3. In the variable value field, paste the path to your Java jdk directory and click OK.
4. Confirm the changes by clicking OK in the Environment Variables and System properties windows.
If installed correctly, the command outputs the Java version. Make sure everything works by writing a simple program and compiling it.