MicroEmu and ant

1 view
Skip to first unread message

Sam Halliday

unread,
Dec 28, 2007, 9:49:44 AM12/28/07
to microemulator-developers
Hi all,

After filing my 10th crippling bug against EclipseME, I have finally
decided to remove it and just use ant scripts within Eclipse for all
my J2ME development. I use MicroEmu 2.0.2 (preview) exclusively on OS
X, with the preverify ppc binary from PhoneME.

Unfortunately, I am a complete newbie when it comes to ant... I've
always managed to survive using Eclipse's built-in jar exporter. J2ME
brings added complications that this can't handle (such as
preverifying and bootclasspath when compiling).

I was wondering if any of you have any example ant config files for
J2ME projects that you'd be willing to post here to get me started?

Vlad Skarzhevskyy

unread,
Dec 28, 2007, 11:50:55 AM12/28/07
to microemulato...@googlegroups.com
Sam
For ant j2me build you should use Antenna http://antenna.sourceforge.net/
Samples are included in distribution.
Regards,
Vlad

Sam Halliday

unread,
Dec 28, 2007, 11:56:32 AM12/28/07
to microemulator-developers
Thanks Vlad,

I'd actually just stumbled upon this... it looks great, although it
takes a bit of customising to make it work with MicroEmu. On the
MicroEmu side... it would help if all the jars in "libs" followed the
same naming convention as in the SUN WTK. I'm currently using the
following rather ugly line

<property name="wtk.midpapi" value="${wtk.home}/lib/cldcapi11.jar:$
{wtk.home}/lib/midpapi20.jar:${wtk.home}/lib/microemu-jsr-82.jar:$
{wtk.home}/lib/microemu-jsr-135.jar" />

instead of the nicer "wtk.bluetooth.enabled" property.

If MicroEmu did that, I think all I'd need to do would be to place the
"preverify" binary (from PhoneME) in a "bin" directory and setup my
own custom "run" target to start microemu as the emulator.

On Dec 28, 4:50 pm, "Vlad Skarzhevskyy" <skarzhevs...@gmail.com>
wrote:
> Sam
>  For ant j2me build you should use Antennahttp://antenna.sourceforge.net/

Vlad Skarzhevskyy

unread,
Dec 28, 2007, 12:04:09 PM12/28/07
to microemulato...@googlegroups.com
Hi Sam
Personally I don't use ant and don't recommend using it for projects
that needs to be maintained over period of time longer than one month
and by more then one developers and especially in distributed
community.
I use maven and we have created j2me-maven-plugin to make j2me
build. I will make a next version of this tool available beginning
next year. The WTK would be no longer required!
Examples in MicroEmulator are built using this approach.
Regards,
Vlad

Sam Halliday

unread,
Dec 28, 2007, 12:09:35 PM12/28/07
to microemulator-developers
Thanks, I'll keep it in mind. I've never looked at Maven... do you
have any good tutorials I could read up on, and possibly some
comparisons versus ant. Is it well supported in Eclipse?

On Dec 28, 5:04 pm, "Vlad Skarzhevskyy" <skarzhevs...@gmail.com>
wrote:

Vlad Skarzhevskyy

unread,
Dec 28, 2007, 1:21:49 PM12/28/07
to microemulato...@googlegroups.com
Hi Sam
I don't have any tutorials to recommend. I have used maven since
version 1 and used google as main source of information. I hope you
are connected to Internet.

I don't know much about Eclipse maven integration, never needed one.
Eclipse for editing and debugging and Maven for automated reproducible
and maintainable build process.
I used:
mvn eclipse:eclipse -DdownloadSources=true
And was happy.

You see I'm more old school when keyboard was used instead of Mouse.

Regarding Ant and Maven comparison:
Ant will allow to do what you want.
Maven will allow you to do what you need.

Regards,
Vlad

Reply all
Reply to author
Forward
0 new messages