Forest Hills High School



HW 1

Steps on installing NetBeans

Step 1: Download JDK 7u80 with NetBeans 8.0.2



Accept License Agreement.

Depending on your operating system download

|Windows x86 |317.21 MB   |[pic] jdk-8u111-nb-8_2-windows-i586.exe |

Or

|Mac OS X x64 |342.99 MB   |[pic] jdk-8u111-nb-8_2-macosx-x64.dmg |

Step 2: Installing the software

1. Click next and select “Do not install Junit” then next again.

2. Choose where you want to install your JDK (ex: C:\Program Files\Java\jdk1.8.0_67)

3. Choose where you want to install Netbeans. (Ex: C:\Program Files\Netbeans)

4. Install the software

Step 3: Check that everything works

1) Create a folder either on your desktop or your documents folder.

(Somewhere you can remember)

2) Open NetBeans

3) File ---> New Project

4) Make sure Java Application is selected and press Next

5) Name the Project PracticeProject .

6) Project Location should be the new folder that you created on step 3-1

7) UNCHECK Create Main Class

8) Press Finish.

9) Next go to File--->New File

10) Select Empty Java File and press Next

11) Class Name Hello (Just like that Capital H and lowercase everything else)

12) Press Finish

In Hello.java type in the following code, try not to copy and paste.

public class Hello

{

public static void main(String []args)

{

System.out.println("Hello World!!");

}

}

Go to Run ---> Run File

At the bottom your Hello.java program should display

Hello World!!

Only proceed if you got Hello.java to work.

Create a new Empty java file named VerticalHello

This program should display:

H

E

L

L

O

W

O

R

L

D

................
................

In order to avoid copyright disputes, this page is only a partial summary.

Google Online Preview   Download