J2ME Polish 2.1 has now integrated Lib SDK for easier mapping. It is not really too well documented, there is one sample project in the Polish installation package. So feel free to post your questions to the forum.
Preconditions:
- J2MEPolish 2.1 installed
- Ant installed and configured with Eclipse
- MGMaps Lib SDK downloaded and uncompressed
Steps:
1. import J2MEPolishSample as a eclipse project
2. rename build.properties_template to build.properties
3. edit build.properties to match your WTK, J2MEPolish directories and and Lib SDK JAR file name and location. E.g. I have
4. open build.xml with Ant perspective (NB! you must have Apache Ant installed and working in Eclipse)
5. run Ant target "retrieve-jars" to get external dependencies, load some JAR files to ivy-jars. It loads some J2ME packages
6. Make sure that Build Path of Eclipse is correct: source folder are src/, also J2ME basic libraries (midp-2.0.jar, cldc-1.1.jar), J2MEPolish and Map Library JAR are in Build Path. Otherwise you get Eclipse errors.
7. Check if your package explorer is clean, and similar to one in attached screenshot.
8. Run J2MEPolish builder in ant. We have some targets pre-configured, e.g. build.nokia.n95. Start this, after some compilation time it should generate polish_map_nokia_n95_0-9-1.jad and polish_map_nokia_n95_0-9-1.jar files to your project dist directory. This is it. J2ME Polish 2.1 integration Eclipse
Quick guide for Eclipse.
Preconditions:
- J2MEPolish 2.1 installed
- Ant installed and configured with Eclipse
- MGMaps Lib SDK downloaded and uncompressed
Steps:
1. import J2MEPolishSample as a eclipse project
2. rename build.properties_template to build.properties
3. edit build.properties to match your WTK, J2MEPolish directories and and Lib SDK JAR file name and location. E.g. I have
4. open build.xml with Ant perspective (NB! you must have Apache Ant installed and working in Eclipse)
J2ME Polish 2.1 integration Eclipse
5. run Ant target "retrieve-jars" to get external dependencies, load some JAR files to ivy-jars. It loads some J2ME packages
6. Make sure that Build Path of Eclipse is correct: source folder are src/, also J2ME basic libraries (midp-2.0.jar, cldc-1.1.jar), J2MEPolish and Map Library JAR are in Build Path. Otherwise you get Eclipse errors.
7. Check if your package explorer is clean, and similar to one in attached screenshot.
8. Run J2MEPolish builder in ant. We have some targets pre-configured, e.g. build.nokia.n95. Start this, after some compilation time it should generate polish_map_nokia_n95_0-9-1.jad and polish_map_nokia_n95_0-9-1.jar files to your project dist directory. This is it.
/JaakL