I'm just starting with Eclipse and J2ME, but I have problems building my
projects (generating jad-files).
This is what I have done so far:
- installed J2SE 1.4.2
- installed Eclipse 2.1.2
- installed Antenna plug-in and added Antenna to Ant's classpath
- installed J2ME Wireless Toolkit 2.1
- installed another WTK (Nokia 7120)
- generated a build.xml file
Now, when I tell Ant to build my project, Ant tells me that...
"[wtkbuild] BUILD FAILED: file:F:/Web/tools/eclipse/workspace/Property
Midlet/build.xml:35: MIDP API not found. Please define wtk.home or
wtk.midpapi properly."
But in my build.xml file I define
<property name="wtk.home" value="F:\Web\java\j2me"/>
where F:\Web\java\j2me is the base path of my J2ME Wireless Toolkit 2.1.
What's going wrong here? I tried different wtk's but to no avail. Any help
would be appreciated!
Thx, Geoffrey
Bob Oak - 21 Jan 2004 22:39 GMT
Antenna is expecting that the MIDP API is located in lib/midpapi.zip.
It looks like it has changed with the 2.1 Toolkit. Depending on
whether you want to build for MIDP 1.0 or 2.0, add the following to
your build.xml:
<property name="wtk.midpapi" value="${wtk.home}/lib/midpapi20.jar"/>
or
<property name="wtk.midpapi" value="${wtk.home}/lib/midpapi10.jar"/>
> I'm just starting with Eclipse and J2ME, but I have problems building my
> projects (generating jad-files).
[quoted text clipped - 21 lines]
>
> Thx, Geoffrey
Detlef Winkelvoss - 24 Jan 2004 12:58 GMT
> I'm just starting with Eclipse and J2ME, but I have problems building my
> projects (generating jad-files).
[quoted text clipped - 21 lines]
>
> Thx, Geoffrey
When i remember right provide ibm a special version of wsad5 for j2me
development (device developer). i'm sure it's free for personal use.
look on ibm site.
wbr winkel