For a CDC application we will create a project that shows the main differences between MIDP and CDC in the NetBeans context.
It is worth noting that NetBeans does in fact provide all of the components for building both configurations in a seamless manner and even changing configurations by accessing the properties of each project.
If NetBeans is not currently installed visit the download sections on:
It is possible to find the full version of NetBeans, named as Java and that contains Java ME; upon installation remember to select the Java ME option.
With NetBeans ready, we can start coding.
MyCDCApp
, leave the other options with their default values and click Next.NetBeans builds the file structure around the CDC platform. As it is common with many of the projects created by NetBeans, this project, too, is built and maintained by an Ant build file.
The project structure is rather similar to the one created for a CLDC application. One difference lies on the fact that with a CDC application we do not have the use of Java Application Descriptor (JAD) files, as evidenced when the project is built.
A JAD file is a compressed JAR file that package MIDlets. It is the JME installation file.
After being built, the file structure is as follows:
3.135.195.162