I am using Antenna 1.0 on Apple OS X 10.5, with the SUN WTK jars as my
classpath and microemu.org as my emulator.
Although OS X is not officially supported by the SUN WTK, an apple
'preverify' ppc binary is distributed with the PhoneME project which works
fine (if not a little slowly).
When I use the wtkpreverify task like this
<wtkpreverify jarfile="${midlet.name}.jar" jadfile="${midlet.name}.jad" />
preverification fails with the output as if I had typed 'preverify -help'
on the command line. Looking at the verbose output of ant, I suspect that
there may be a typo in the invocation of 'preverify':-
[wtkpreverify] Preverifying
/Users/samuel/Documents/Java/Hello.J2ME/hello.jar
[wtkpreverify] Executable:
/Users/samuel/Documents/Java/Hello.J2ME/../tools/WTK/bin/preverify
[wtkpreverify] Arguments : -classpath
/Users/samuel/Documents/Java/Hello.J2ME/../tools/WTK/lib/midpapi20.jar:/Use
rs/samuel/Documents/Java/Hello.J2ME/../tools/WTK/lib/cldcapi11.jar:/Users/s
amuel/Documents/Java/Hello.J2ME/../tools/WTK/lib/jsr082.jar -d
/Users/samuel/Documents/Java/Hello.J2ME/9bc5c65f.tmp/Users/samuel/Documents
/Java/Hello.J2ME/hello.jar
[wtkpreverify] Usage: preverify [options] classnames|dirnames ...
Note that the -d parameter is missing a space between the output directory
and the input jar file! Is my analysis of this correct?
I have an ugly workaround for this... which is simply to call the preverify
executable directly and hard code the classpath jars. So instead of the
nice task call above, I use this monstrosity...
<mkdir dir="preverify.tmp" />
<exec executable="${wtk.home}/bin/preverify">
<arg line="-classpath
${wtk.home}/lib/cldcapi11.jar:${wtk.home}/lib/midpapi20.jar:${wtk.home}/lib
/jsr082.jar" />
<arg line="-d preverify.tmp" />
<arg line="${midlet.name}.jar" />
</exec>
<move file="preverify.tmp/${midlet.name}.jar" tofile="${midlet.name}.jar"
/>
<delete dir="preverify.tmp" />
Please let me know if there is anything else I can do to help you debug
his.
Nobody/Anonymous
None
None
Public
|
Date: 2008-06-22 05:44
|
|
Date: 2008-06-21 23:16
|
|
Date: 2008-04-25 01:07
|
| Field | Old Value | Date | By |
|---|---|---|---|
| status_id | Open | 2008-06-22 05:44 | omry_y |
| close_date | - | 2008-06-22 05:44 | omry_y |
Copyright © 2009 Geeknet, Inc. All rights reserved. Terms of Use