Hi People,
I'm a beginner in j2me development and I've been learning somethings about maven and I wanted to use maven to j2me.
First I created a maven project using the command:
---
mvn archetype:create -DarchetypeGroupId=com.pyx4me \
-DarchetypeArtifactId=j2me-simple -DarchetypeVersion=2.0.4 \-DremoteRepositories=http://www.pyx4me.com/maven2 \
-DgroupId=org.example -DartifactId=myapp---
I tested the app without problems. After that, I created a Form using LWUIT, so I added the lwuit dependency. When I run the "mvn install" command, I got a "build successful" message, but when I try to test the app with the "mvn j2me:run" command, it shows the emulator, but when I try to enter to the app I get the error
"[WtkRun] java.lang.NoClassDefFoundError: com/sun/lwuit/Display", I think the error is because the jar file doesn't have the lwuit classes, so I tried to add the classes using the assembly parameter but I didn't have result. I've read some posts in the group about lwuit, I appreciate too much some suggestions about the use of lwuit with the pyx4me plugin. I have worked with lwuit with ant without problems.
I'm attaching the pom file.
Thanks in advance for your help!!!
--
Edwin Miguel