CPSC 220 - Computer Programming

NetBeans & Java setup

Due: Wednesday, Jan 11th, class time

Summary

Download and install the Java development environment on your own machine. Note: if you don't have your own computer, this doesn't mean you can't take this course, but do let me know as soon as possible so I can make arrangements for a laptop for you to borrow.

Procedure

Note: you may find other links and methods and ways to complete this installation. Any installation method is okay provided that you download both (1) the Java JDK (not just the JRE), version 19-something, and (2) the NetBeans IDE, version 16 or later.

  1. Download and install the stuff.
  2. Prove you can make it work.
    1. Start NetBeans.
    2. When it comes up, choose "New project..." from the File menu, then click on the "Java with Ant" category and choose "Java Application." Call your project "Setup" and make sure that "Create Main Class" is checked. (Also, if you care where specifically on your disk NetBeans stores projects, change the "Project Location" and/or "Project Folder" boxes accordingly.) Then press "Finish."
    3. When the editor comes up, look for the line of code containing "public static void main(String args[]) {". Immediately after this line, add (type) this line of code:
              System.out.println("I'm done with my homework!");
      
      Note carefully that this new line must come after the "{" character, but before the line with the "}" character.
    4. Save the file.
    5. Press the green "play" arrow to run your code.
    6. Verify that in the output/console window at the bottom of the screen, your message appears.
  3. Rejoice greatly.

Note

If you don't have your own machine and will be exclusively using the UMW labs and a UMW loaner this semester, please send me an email with subject line "CPSC 220 loaner needed" and indicate in the body of the message that you don't have your own computer. ASAP!

Help

If you have trouble completing this homework, you can email me for help (with subject line "CPSC 220 help") 24/7.