JavaBeat
Struts Tutorials | Hibernate Tutorials | JSP Tutorials | Servlet Tutorials | EJB Tutorials | Struts Resources | Spring Resources | Hibernate Resources
NetBeans Home | Resources | Tutorials

Next: Adding Code to the Generated Source File

Setting Up the Project

To create an IDE project:

  1. Start NetBeans IDE.
  2. In the IDE, choose File > New Project, as shown in the figure below.
  3. NetBeans IDE with the File >: New Project menu item selected.

  4. In the New Project wizard, expand the General category and select Java Application as shown in the following figure:
  5. NetBeans IDE, New Project wizard, Choose Project page.

  6. In the Name and Location page of the wizard, do the following (as shown in the figure below):
    • In the Project Name field, type Hello World App.
    • In the Create Main Class field, type helloworldapp.HelloWorldApp.
    • Leave the Set as Main Project checkbox selected.
  7. NetBeans IDE, New Project wizard, Name and Location page.

  8. Click Finish.

The project is created and opened in the IDE. You should see the following components:

  • The Projects window, which contains a tree view of the components of the project, including source files, libraries that your code depends on, and so on.
  • The Source Editor window with a file called HelloWorldApp open.
  • The Navigator window, which you can use to quickly navigate between elements within the selected class.

NetBeans IDE with the HelloWorldApp project open.



JavaBeat 2006, India | javabeat home | About Us | partners directory | Advertise with us