: I wanted to build my j2me applications through Eclipse with antenna
I have Eclipse set up for J2ME development here. I wound up
pretty-much ditching Ant during development. I found Ant
increased by build times to an unacceptable degree.
What I wound up doing was running the emulator from the class files
using a batch file that did preverification first:
``Since I was already launching via a batch file, I inserted
a preverify call there.
This is slightly inefficient if performing multiple runs -
but essentially everything now works at a reasonable speed -
and is fairly neat.
This method bypasses the need to make a jar file - or to
insert its length in the JAD file.'' - TT.
I still have an Ant task that bundles things into a Jar for deployment -
but I used http://www.yqcomputer.com/
"Preverification failed" may be an indication that you are using a
There should be a proper error message somewhere if so - perhaps preverify
manually to uncover it.
Here are my original instructions for launching via a batch file:
``I found out how to run midlets in Eclipse under windows.
Other folk seem to:
* Use the WTK KToolbar, or:
* Use WSDD.
The trick is much the same as the one used for the MS JVM:
You set up a second "Installed JRE" - using the preferences - and have
it point to an installed JRE.
Then in the "bin" directory of that you make a batch file - called:
This contains one line:
C:\Program1\Java\WTK20\bin\emulator %6 %7 %8
Then you use a run configuration, set it to use the new JRE,
use these as your "Program arguments":
-classpath C:\Docs\Java\xyz.jar -Xdescriptor:C:\Docs\Java\xyz.jad
...as your Java executable. The "Main class" can be set to anything.
|im |yler http://www.yqcomputer.com/