For building Midlets on the command-line, there is a tool called "antenna". You won't be able to run the Midlet on an emulator until it is preverified, using the J2ME-Tools. Does maven do this?
Do you have to use Maven2? If you choose "Export Antenna Buildfiles" than you can look at some created Ant/Antenna-Task-Files how a Midlet is created: build.xml eclipseme-build.xml eclipseme-build.properties user-build.properties The "internal" processes do the same taks, but not using these files. Andreas Böhme schrieb: > Maven2 (http://maven.apache.org/) is a build-tool, like Ant. > >> go to the Project settings (rightklick on the Project name) and go to >> "Java Build Path". There you can adjust the root-path of your sources to >> point to <Project>/src/main/java. I think then your Jar would be >> deployed containting the right directory-structure. > > The odd thing is: I did. It's the first I did. > > Unfortunately I don't know how EclipseME works internally, so I have no > idea what the error could be. Are there any configuration files of > EclipseME (other than eclipse-natives)? > > >> Then you have to add the external dependency to the build-path, so >> Maven2 can be procompiled and verified. Is Maven2 a J2ME-library? If >> not, you cannot use it as-is, you must build it using J2ME-Profiles. >> >> Greetings, >> Markus >> >> Andreas Böhme schrieb: >>> Hi All! >>> >>> I've integrated Maven2 (pyx4me's plugin) with my project, and therefore >>> changed some paths (e.g. src -> src/main/java). >>> >>> After that integration EclipseME won't emulate my application any more >>> (which worked very well before): >>> Running with storage root SonyEricsson_M600_Emu >>> java.lang.ClassNotFoundException: at/researchstudio/sat/mgbl/AheadOfTheGame >>> at com.sun.midp.midlet.MIDletState.createMIDlet(+14) >>> at com.sun.midp.midlet.Scheduler.schedule(+52) >>> at com.sun.midp.main.Main.runLocalClass(+28) >>> at com.sun.midp.main.Main.main(+116) >>> Execution completed. >>> >>> >>> It seemed like a classpath issue to me and so I added -cp "[..]" and got >>> an error which seems to result from non-existing preverification: >>> Error verifying method at/researchstudio/sat/mgbl/AheadOfTheGame <init>()V >>> Approximate bytecode offset 12: Inconsistent or missing stackmap at target >>> >>> >>> So, do EclipseME and Maven2 not work together at all? >>> Is there a way to easily start just the emulator / use the EclipseME >>> emulation facility? >>> >>> >>> Thanks in advance, >>> Andreas >>> >>> ------------------------------------------------------------------------- >>> This SF.net email is sponsored by DB2 Express >>> Download DB2 Express C - the FREE version of DB2 express and take >>> control of your XML. No limits. Just data. Click to get it now. >>> http://sourceforge.net/powerbar/db2/ >>> _______________________________________________ >>> Eclipseme-users mailing list >>> [EMAIL PROTECTED] >>> https://lists.sourceforge.net/lists/listinfo/eclipseme-users >> -- >> >> ********************************* >> [EMAIL PROTECTED] >> http://www.psitronic.de >> >> psitronic IT-Solutions >> Markus Sinner >> W-Rathenau-Str. 14 - 68642 Bürstadt >> Tel.: (+49)6206 / 963513 >> Fax: (+49)6206 / 963514 > > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > _______________________________________________ > Eclipseme-users mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/eclipseme-users -- ********************************* [EMAIL PROTECTED] http://www.psitronic.de psitronic IT-Solutions Markus Sinner W-Rathenau-Str. 14 - 68642 Bürstadt Tel.: (+49)6206 / 963513 Fax: (+49)6206 / 963514 ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ Eclipseme-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/eclipseme-users
