If you are intending on using the ANT build script I provide below to automate your project’s build then all of these files must appear in a particular hierarchy. Below is an image of that hierarchy. Ensure that the files are placed in the proper directories.
Although I discuss each of build steps in detail below I want to briefly explain the directory structure’s purpose.
The src directory is where the two java files are located.
When compiled the resulting class files will be placed in the build directory along with the MANIFEST.MF file which is copied from the META-INF directory.
The lib directory houses the two main J2ME library JAR files that are needed for our project.
Upon JARring the project, the files located in the build folder will be archived and the resulting JAR files will be placed in the dist folder where the JAD file is normally housed. It is here that preverify and JammedUp process the JAR file and update the JAD file.
This is by no means the only way to layout your project’s files but it’s a basic one that has worked well for me many times.
No comments:
Post a Comment