Java For Students

usenetbeans.htm


Using Netbeans 4.1 - a brief introduction


When using NetBeans, you must create a 'project'. This is a folder containing Java code, plus associated information. Even if you are writing a short single-file program, a project must be created.

In the following, let us assume that we are writing a program named Demo.java. Additionally, we assume that you have created a folder named JavaPrograms, which will hold a collection of projects. The name of the project folder can be anything, but for consistency we will name it DemoProject in this example.

Here are the steps:

Debugging

It is possible to run the code a line at a time, and inspect the values of variables.

The debugger is powerful, and has many more facilities!

Mike Parr
1/June/05