Java_and_Eclipse_installation_guide_v1.
Java_and_Eclipse_installation_guide_v1.
1: For installing Java, click here and follow the below steps:
Step 1: Click on the link which is provided above OR Open browser -> paste the URL -
https://www.azul.com/downloads/?package=jdk#zulu
Step 2: Please scroll below in the window and you should be able to see the version
shown below under Java 17 (LTS) section.
Step 3: Please click on ‘Download’ and select the “.zip” option to download as
shown below:
Step 7: Search for “Environment” in the Windows Search Box and click on “Edit
the system environment variables”
Step 8: Click on “Environment Variables”
Step 9: Now, under the “User variables”, select “Path”, and click on “Edit”
Step 10: Click on “New” in the “Edit environment variable” window. You would
see an empty text box would appear as shown below
Step 11: Now, copy the path of the bin folder (“C:\Program
Files\Java\zulu17.50.19-ca-jdk17.0.11-win_x64\bin”) from the folder extracted in
“C:\Program Files\Java” and paste the copied path in the empty text box that had
appeared in the “Edit environment variable” window (Note: version may differ)
and click on “OK”.
Step 12: Click on “OK” again as shown below
Step 13: To check the java version you can go to “Command Prompt” of window
(Click Window key + R button, type cmd there and press “OK”)
Step 14: Type the command: java --version and if the command execution shows
the openjdk version as 17 or higher, then the installation is successful as shown
below:
2: To configure Eclipse IDE, click here and follow the below steps:
Step 1: Click on the link which is provided above OR Open browser -> paste the
URL - https://www.eclipse.org/downloads/packages/release/2024-03/r
Step 4: To launch eclipse, double click on “eclipse” application file present inside
“Eclipse” folder as shown below and choose the workspace where you want to save
your work.
Step 5: Create a new Java project in Eclipse by selecting the menu option – File -
>New->Project
Step 6: Select “Java Project” (Please note that the ‘Java Project’ option may also be
present inside the ‘Java folder’ as shown in the second screenshot) and click on “Next”
Step 7: Enter the “Project name”, use the default options for JRE and click on
“Finish”
Click on “Yes” if you are asked to change perspective.
Step 11: The “Welcome.java” file will open in the editor where we can write the code
Step 13: To execute the program, right-click on the .java file, select Run As -> Java
Application or click button in the tool bar