0% found this document useful (0 votes)
100 views12 pages

Downloading and Installing JDK and Netbeans

Uploaded by

jojohalabi660
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
100 views12 pages

Downloading and Installing JDK and Netbeans

Uploaded by

jojohalabi660
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 12

14011101-4: Computer Programming

Second Term: 2022/23

Setting Up Java Development Environment

Objectives
• Download and install JDK
• Download and install Netbeans

Installing Java Develop Kit (JDK) with Netbeans IDE on Windows


We have to prepare our machines to be able to compile and debug Java programs by installing the JDK
that includes Java Runtime (JRE) and other development tools e.g. compiler and debugger. Also, we need
an Integrated Development Environment (IDE) for programming in Java. Usually, the IDE has a friendly
Graphical User Interface (GUI) that provides an editor, a compiler or interpreter and a debugger to the
developer or programmer. There are many great options for Java IDE, and you have all the right to choose
the one that’s suit your preferences; however, in this course we will be using Netbeans.

PART ONE: Downloading and installing Java JDK


Step 1: Go to Java Downloads | Oracle page, then choose either Java SE 17 or 18. Note that by the time I
downloaded mine there was only SE 17, but now there is SE 18. However, scroll down where you could
find the binaries that best fit your machine and select the installer to download the right exe file. Figure 1
is an example for installing the Java SE development on Windows.
Figure 1: Oracle Download Webpage

Step 2: once the download is completed, click on the exe file, a message window will pop-up asking for
your permission to allow the application to make changes on your device, you should click on YES as in
figure 2.

Figure 2: Click on Yes to give permission for the installer to setup Java on your device
Step 3: The Java SE installer should start the installation process. So click on Next button as in figure 3

Figure 3: Click on Next button

Step 4: The next message window describes where the Java will be placed in your device -it’s the default
location and its better NOT to change it- as in figure 4.

Figure 4: the location of Java on your device, click next

Step 5: Figure 5 describes the installation process; you have to wait until this process is complete as in
figure 6

Figure 5: Installing Java on Windows OS


Figure 6: The installation process is completed! Click Close!

PART TWO: Setting Environment Variables


Step 1: Click on the Search icon on your Window as in figure 7, then look for “edit the system
environment variables”.

Figure 7: Search for edit the system environment variables on your Windows OS
Step 2: Click on Environment Variables button that is in System Properties as in figure 8. Note, your
system might open another window like the one in figure 9, if that is the case then move to step 4

Figure 8: On the System Properties click on the Environment Variable

Step 3: Click on the Path then click on the Edit button as in figure 9

Figure 9: Edit Path

Step 4: Now, you will need to add the Path to your JDK folder on your system as in figure 10
Figure 10: Adding the path to the JDK folder

Step 5: Go to the location where Java was installed as we mentioned previously during the installation
process which is similar to C:\Program Files\Java\jdk-17.0.1\ as in figure 11. Then, navigate inside the
bin folder as in figure 12 and copy the path by clicking on it

Figure 11:Navigate to Java directory in your device

Figure 12: Copy the path of Java's bin folder


Step 6: go back to the environment variable window -from step number 4- and then double click on an
empty row and paste the path and then press Enter on your keyboard. Finish this step by clicking on OK
button as in figure 13

Figure 13: Paste the path on a new row and then click OK

Step 7: to set the Java home environment variables under the User Variables click on New button and
then twrite/ype in JAVA_HOME on the Variable name text box and for the value you should paste the
path of the JDK without the bin as in figure 14 then click on OK and on the following window, you may
click on OK button once again

Figure 14: Click on New button that is underneath the User Variable and fill in the information
Step 8: Go to Command Prompt by typing cmd on the search box, then open it. Type java -version
command. Note that if you setup everything right you should see an output similar to the one in figure
15.

Figure 15: Java version

PART THREE: Downloading and Installing Netbeans:


Step 1: go to Apache NetBeans Releases, then click on the download button of the newest version

Figure 16: Download the latest version

Step 2: browse through the binaries and select the one for your device as in figure 17
Figure 17: Select the binary for your device

Step 3: Click on the link under the HTTP headline as in figure 18

Figure 18: click on the link under HTTP

Step 4: Once the download is completed, a window will pop-up to ask for your permission to allow the
application to make changes, click on YES button then the installer will start downloading Netbeans on
your computer.
Step 5: Do not change anything on the following window. Leave it as its and click Next

Figure 19: Click on Next button

Step 6: Accept the agreement by checking the box and then click on Next

Figure 20: Check all the boxes on the agreement policy

Step 7: The following window should show you the path to the JDK. DO NOT change anything, just click
Next

Figure 21: JDK path, click on next


Step 8: Click on install update button on the following window

Figure 22: Install updates, click on next

Step 9: wait until the installation process is completed then click on the finish button

Figure 23: Click on Finish once the installation is over

Step 10: If the welcoming window did not show up, then go to the Desktop and click on the Apache

Netbeans IDE icon


Figure 24: Netbeans welcoming window

Resources:

How to install JDK with Netbeans Videos:

• For Windows OS: https://youtu.be/iROJ1BN55mc


• For Mac OS X: https://youtu.be/t3rgXzOGYHU

You might also like