Video Instructions on Using NetBeans

The following videos can be viewed on Windows Platforms using Windows Media Player (or something equivalent).  You may need to install the TechSmith codex for viewing these videos.

Project Creation

Every program that you create will be stored in a project.  The following video shows how to create a HelloWorld project and program.

Project Compile and Run

Once you've created the source of your project, you're ready to compile it and run it, requiring only 2 button clicks as this video shows.

Unit Test Creation

On some programs, you want to create a unit test.  As our HelloWorld program consists only of a single Java program that prints to stdout, the first step is to create a unit test for the Main.java file.  Next is to follow the instructions list on this page to capture stdout and to compare correct output to file output.  In this case, we know that our program runs correctly, so the output file is renamed to be "correct.txt".  All subsequent unit tests of HelloWorld will have its output compared to "correct.txt".  Watch this video to see these actions live.

Unit Test Runs

Lastly, we know that our program runs correctly, so we run the unit test and it fails the first time.  The reason is that there is no "correct.txt" file that contains the output for a correct execution.  However, we know the output file "out.txt" can be renamed to be "correct.txt".  All subsequent unit tests of HelloWorld will have its output compared to "correct.txt".  Watch this video to see these actions live.