Map API

Nutiteq Maps Lib SDK enables developing advanced mobile mapping applications.
Platforms: Android, RIM BlackBerry, Java ME (J2ME)
Download maps API SDK »
Untitled Document

Products

» View demos
» Downloads

Latest news

Last at Tue, 6 Dec 2011 18:37:53
Topic: New BlackBerry sample app
See more news »

J2ME Polish 2.1 integration

2 replies [Last post]
jaak
User offline. Last seen 13 hours 24 min ago. Offline
Joined: 06/19/2008

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.

/JaakL

jaak
User offline. Last seen 13 hours 24 min ago. Offline
Joined: 06/19/2008

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

polish.home=C:/Program Files/J2ME-Polish2.1.0
wtk.home=C:/WTK2.5.2

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 EclipseJ2ME Polish 2.1 integration Eclipse

/JaakL