Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
0% found this document useful (0 votes)
4 views

Java_and_Eclipse_installation_guide_v1.

guide for installation

Uploaded by

ashish sharma
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
4 views

Java_and_Eclipse_installation_guide_v1.

guide for installation

Uploaded by

ashish sharma
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 16

Follow the below Steps to install Java and Eclipse:

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 4: A zipped folder will be downloaded in “Downloads” folder as shown below

Step 5: Create a new folder named “Java” in “C:\Program Files”


Step 6: Navigate to “Downloads” folder and now extract the downloaded Zulu
zipped folder to “C:\Program Files\Java”. The extracted folder would have the
following folders and files.

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 2: Click on “Windows x86_64” as highlighted below (Note: this eclipse


installation is done on 64 bit OS. It might be different in your case) and click on
“Download” and you would see that eclipse download would have started.
Step 3: Create a new folder named ‘Eclipse’ in the path “C:\” and extract the
downloaded eclipse folder “eclipse-java-kepler-SR1-win32-x86_64” in
“C:\Eclipse”

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 8: Right click on “src” and select New -> Package


Step 9: Enter the “Name” of the package and click on “Finish”
Step 10: Right-click on the package (“demo”), select New -> Class. Please give a
name to the class to implement your code (In the screenshot, the class is named as
Welcome and this will create a new .java file named Welcome.java)

Step 11: The “Welcome.java” file will open in the editor where we can write the code

Step 12: Copy the below code:


package demo;
public class Welcome {
public static void main(String[] args) {
System.out.println("Hello World! Welcome to Java Programming");
}
}
NOTE: By default, Eclipse will automatically compile the .java file into a .class file (byte
code) when the file is saved.

Step 13: To execute the program, right-click on the .java file, select Run As -> Java
Application or click button in the tool bar

The output will be displayed in the Console window as shown below:

You might also like