Rabu, 31 Oktober 2012

Belajar java buat pemula


Creating a Project

Because all Java development in the IDE takes place within projects, we first need to create a new ContactEditor project within which to store sources and other project files. An IDE project is a group of Java source files plus its associated meta data, including project-specific properties files, an Ant build script that controls the build and run settings, and a project.xml file that maps Ant targets to IDE commands. While Java applications often consist of several IDE projects, for the purposes of this tutorial, we will build a simple application which is stored entirely in a single project.
To create a new ContactEditor application project:
  1. Choose File > New Project. Alternately, you can click the New Project icon in the IDE toolbar.
  2. In the Categories pane, select the Java node and in the Projects pane, choose Java Application. Click Next.
  3. Enter ContactEditor in the Project Name field and specify the project location.
  4. Leave the Use Dedicated Folder for Storing Libraries checkbox unselected.
  5. Ensure that the Set as Main Project checkbox is selected and clear the Create Main Class field.
  6. Click Finish.
The IDE creates the ContactEditor folder on your system in the designated location. This folder contains all of the project's associated files, including its Ant script, folders for storing sources and tests, and a folder for project-specific metadata. To view the project structure, use the IDE's Files window.

Tidak ada komentar:

Posting Komentar