A project is a group of source files and the settings with which you build, run, and debug those source files. In the IDE, all Java development has to take place within a project.
The IDE builds its project infrastructure directly on top of Apache Ant, the leading build tool for Java applications. The IDE stores all of the information about your project in an Ant script, a properties file, and a few XML configuration files. This means that you can build and run your projects outside of the IDE exactly the same as inside the IDE.
When a project is created, the IDE:
CDC applications are called xlets. The xlet application programming
model is very similar to the applet application programming model. Xlets are
loaded into an xlet manager and controlled through a life cycle interface. This
is similar to how an applet is loaded and run inside a browser. The main difference
is that the xlet application programming model does not have implicit API requirements
like java.applet
, which allows it to be used in a greater variety
of product scenarios.
The MIDP project structure is similar to that of standard NetBeans projects.
There are differences, however, in the build
and dist
folders to accommodate the MIDP build process.
Logical View
The logical view of the project, shown in the Projects window, shows the source package, resources, and project configurations that you have created.
By right-clicking on the project node, you can choose the following Mobility-specific menu items:
Right-clicking on the Source Package node and choosing New lets you add new file templates to your application.
Right-clicking the Resources node enables you to add Project, JARs, folders, and libraries as resources for your application.
Files View
When a project is created, the following folders are created under build
(shown in the Files window):
compiled.
Contains all compiled classes.preprocessed.
Holds the source files after they are preprocessed.
The files will differ from the original source files if you are using project
configurations. obfuscated.
Holds the obfuscated versions of the class files.preverified
. Holds the preverified versions of the class files.
These files are packaged into the distribution JAR of your project. preverifysrc.
Versions of the source files before they are preverified.