Physical Structure of Mobile Projects


You can examine the physical structure of your Mobile project using the Files window. This window is located, by default, next to the Projects window or accessible via Window | Files in the main menu.

When you create a Mobile project, the IDE creates the same directories and files as those that are created for general Java projects, except that a separate test directory is not created. Tests, if generated, are placed in the same packages as the classes they are testing.

The build and dist folders, created the first time you build the project, are slightly different due to the more complicated nature of the MIDP build process. The following directories are created under build:

  • compiled folder, which contains all compiled classes.

  • preprocessed folder, which holds preprocessed versions of your source files. The files contained here are different from the original sources only if you are using configurations.

  • obfuscated folder, which holds the obfuscated versions of your class files.

  • preverified folder, which holds the preverified versions of your class files. These are the class files that are packaged in your project's distribution JAR file.

These files are maintained both to increase the speed of the build process and to give you information you can use to isolate where in the build process bugs may have been introduced into your application.

The NetBeans build process follows Ant standards for management of temporary build classes. This means that only source files with a more recent timestamp than that of the class files in the build directories are automatically rebuilt when the Build command is run. Also, deleting a source file from the project does not automatically delete the associated class files from the build directories. Therefore, it is important to clean and rebuild the project after a source file has been removed from the project.


The dist folder contains your project's distribution JAR file and JAD file.



NetBeans IDE Field Guide(c) Developing Desktop, Web, Enterprise, and Mobile Applications
NetBeans IDE Field Guide(c) Developing Desktop, Web, Enterprise, and Mobile Applications
ISBN: N/A
EAN: N/A
Year: 2004
Pages: 279

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net