0% found this document useful (0 votes)
7 views17 pages

Install Java JDK & NetBeans Guide

Uploaded by

jabir.log016
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)
7 views17 pages

Install Java JDK & NetBeans Guide

Uploaded by

jabir.log016
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

A.

Installing Java JDK and NetBeans:

 Firstly, You will need to install Java JDK before you can install NetBeans. JDK stands for Java
Development Kit.

To download the Java JDK go to the link:

[Link]

Scroll down and select your OS and then select the installer for your OS. For example, on
Windows, select the link for the x64 Installer.

The installation file jdk-23_windows-x64_bin.exe will be downloaded.


Double click on the installer file jdk-23_windows-x64_bin.exe.

Click on Next.

Click on Next.
Click on Close.
 Secondly, download and install NetBeans.

go to: [Link]

Then

The installation file [Link] will be


downloaded.

Double click on the installer file [Link].


Leave the default settings, click on Next.
Accept the terms of the license agreement and then press Next.
Leave the default settings, click on Next.
Leave the box checked the Check for Updates and click on Install.
When the installer done, click on Finish.
B. Simple Java example using NetBeans.

Step 1: Start NetBeans.

Step 2: Create a New Java project:

For each Java application, you need to create a "project" to keep all the
source files.

1. From the File menu, choose New Project.


2. Choose Java from project Categories. And Java Application from
Projects. Then click on Next.
3. Inside the Project Name write your Java application name (example:
FirstProgram) and the Project Location at your hard disk. Then click on
Finish
4. At the center of your screen, you can see the default source for your Java
application.

Write the following line of code inside the main method:

[Link]("First Visual Programming Lab using NetBeans.\n");


5. Execute the Java application:

Go to the Run menu, click on Run Project (FirstProgram).


The output will appear at the output of the screen.

In the lab, try the showMessageDialog method to display the statement.

You might also like