In this exercise, you are going to build and run a sample Java program called Homework using NetBeans. The sample program can be built and run as NetBeans project. So you are going to open an existing NetBeans project rather than creating a new project. (This is a similar setup as in Exercise 4.4 and Exercise 4.5 above.)
Steps to follow
0. If you have not downloaded and unzipped the NetBeansFiles.zip file as described above, please do that first.
1. Start NetBeans (if you have not done so.)
2. Open an existing Homework sample NetBeans project.
* Select File from menu bar.
* Select Open Project (Crtl+SHift+O).
* In the Open Project window, browse to C:\NetBeansFiles\Chapter 9\9.2 directory and select HomeworkProject.
* Click Open Project Folder button.
* Expand HomeworkProject project node.
* Expand Source Packages. (The Source Packages node contains all the packages.)
* Expand
* Double click Homework1.java to open it in the Editor window.
3. Run the program.
* Right-click HomeworkProject project node and then select Run Project.
No comments:
Post a Comment