Wednesday, June 21, 2006

 

Twiddling with J2MEPolish

The samples don't work out of the box for J2MePolish, because wtk2.2 isn't for osx (linux). I copied the preverify app from mpowerplayer over wtk2.2's - now the samples compile! I can use the mpowerplayer application to run the j2me sample application. Sweet.

Now...maven? I copied over one of the sample application from J2MEPolish into a stock maven2 project.

I got some of the sources to compile by adding in the WTK libraries one at a time. So far I've only added a few jars for WTK:

mvn install:install-file -Dfile=~/WTK2.2/lib/midpapi10.jar -DgroupId=javax.microedition -DartifactId=midp -Dversion=1.0 -Dpackaging=jar
mvn install:install-file -Dfile=~/WTK2.2/lib/midpapi20.jar -DgroupId=javax.microedition -DartifactId=midp -Dversion=2.0 -Dpackaging=jar
mvn install:install-file -Dfile=/Users/danesummers/Documents/WTK2.2/lib/mmapi.jar -DgroupId=javax.microedition -DartifactId=mmapi -Dversion=1.0 -Dpackaging=jar

And a few more jars for J2MEPolish:

mvn install:install-file -Dfile=/Users/danesummers/Documents/J2MEPolish/import/enough-j2mepolish-client.jar -DgroupId=j2mepolish -DartifactId=enough-client -Dversion=1.0 -Dpackaging=jar
mvn install:install-file -Dfile=/Users/danesummers/Documents/J2MEPolish/import/nokia-ui.jar -DgroupId=nokia -DartifactId=ui -Dversion=1.0 -Dpackaging=jar

And here are the dependencies:



<dependencies>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>3.8.1</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>javax.microedition</groupId>
<artifactId>midp</artifactId>
<version>2.0</version>
</dependency>
<dependency>
<groupId>nokia</groupId>
<artifactId>ui</artifactId>
<version>1.0</version>
</dependency>
<dependency>
<groupId>javax.microedition</groupId>
<artifactId>mmapi</artifactId>
<version>1.0</version>
</dependency>
<dependency>
<groupId>j2mepolish</groupId>
<artifactId>enough-client</artifactId>
<version>1.0</version>
</dependency>
</dependencies>


Hey it actually compiles in maven. Thats a start I guess.

Comments: Post a Comment



<< Home

This page is powered by Blogger. Isn't yours?