Pyx4me and Lwuit problem

23 views
Skip to first unread message

Edwin Miguel

unread,
Dec 19, 2009, 9:16:39 AM12/19/09
to pyx4me...@googlegroups.com
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
pom.xml

M2 Mixa

unread,
Dec 20, 2009, 6:46:02 AM12/20/09
to pyx4me...@googlegroups.com
Hi, I use LWUIT with maven - I had to create LWUIT maven artifact for that myself, compiling it from sources in maven.

--

You received this message because you are subscribed to the Google Groups "pyx4me-users" group.
To post to this group, send email to pyx4me...@googlegroups.com.
To unsubscribe from this group, send email to pyx4me-users...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/pyx4me-users?hl=en.

Reply all
Reply to author
Forward
0 new messages