Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within Java Micro Edition
Search Coderanch
Advance search
Google search
Register / Login
Post Reply
Bookmark Topic
Watch Topic
New Topic
programming forums
Java
Mobile
Certification
Databases
Caching
Books
Engineering
Micro Controllers
OS
Languages
Paradigms
IDEs
Build Tools
Frameworks
Application Servers
Open Source
This Site
Careers
Other
Pie Elite
all forums
this forum made possible by our volunteer staff, including ...
Marshals:
Campbell Ritchie
Jeanne Boyarsky
Ron McLeod
Paul Clapham
Liutauras Vilda
Sheriffs:
paul wheaton
Rob Spoor
Devaka Cooray
Saloon Keepers:
Stephan van Hulst
Tim Holloway
Carey Brown
Frits Walraven
Tim Moores
Bartenders:
Mikalai Zaikin
Forum:
Java Micro Edition
Error!: Missing stack map at label: 40
Mutturaj Baradol
Greenhorn
Posts: 7
posted 15 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
hi, by refering to your previous comment Hi everyone, I had a similar problem with my MIDlet suite, but i have solved the problem. It seems that you are making the very same mistake that I was. You are using the WTK to preverify your code and generate the JAR. BIG mistake. use the rapc command directly on your source code. Let Blackberry do the preverification / JAR generation for you. This will 100% solve your problem. can u share me how to create .jar using Blackberry. actually iam trying to mixup MIDlet and RIM API's and getting the error Error!: Missing stack map at label: 40 when i try to generate .cod file using .jad and .jar from WTK. following is the build.xml used for creating jad and .jar <project name="Hip Hop Official" default="package" basedir="."> <property file="config.properties"/> <!-- This MIDlet Suite --> <property name="icon_src_file" value="icon.png"/> <property name="icon_dst_file" value="icon.png"/> <property name="MIDletSuite" value="Hip Hop Official"/> <property name="MIDlet_1_name" value="Hip Hop Official"/> <property name="MIDlet_1_class" value="GoTvMIDlet"/> <property name="MIDlet_1_icon" value="/${icon_dst_file}"/> <property name="MicroEdition-Profile_version" value="MIDP-2.0"/> <property name="MicroEdition-Configuration_version" value="CLDC-1.0"/> <property name="JADversion" value="1.0.0"/> <!-- Directories of file locations --> <property name="icon.dir" location="icon"/> <property name="src.dir" location="src"/> <property name="classes.dir" location="classes"/> <property name="final.dir" location="bin"/> <property name="resources.dir" location="res"/> <!-- Location of Antenna Tasks --> <property name="wtk.home" value="d:\WTK22"/> <!--<property name="wtk.home" location="${wtk_home}"/>--> <!--<property name="wtk.midpapi" location="C:\WTK21\lib\midpapi20.jar"/>--> <property name="wtk.midp.version" value="2.0"/> <property name="wtk.emptyapi" location="${wtk.home}\wtklib\emptyapi.zip"/> <property name="retroguard" location="${retroguard_path}"/> <!--<echo message = "WTH HOME: ${wtk.home}"/> --> <taskdef name="wtkjad" classname="de.pleumann.antenna.WtkJad"/> <taskdef name="wtkbuild" classname="de.pleumann.antenna.WtkBuild"/> <taskdef name="wtkpackage" classname="de.pleumann.antenna.WtkPackage"/> <taskdef name="wtkmakeprc" classname="de.pleumann.antenna.WtkMakePrc"/> <taskdef name="wtkrun" classname="de.pleumann.antenna.WtkRun"/> <taskdef name="wtkpreverify" classname="de.pleumann.antenna.WtkPreverify"/> <taskdef name="wtkobfuscate" classname="de.pleumann.antenna.WtkObfuscate"/> <!----> <!--______Compile & Preverify_________--> <target name="compile" depends="initialize"> <wtkbuild srcdir="${src.dir}" destdir="${classes.dir}" preverify="false"> </wtkbuild> </target> <target name="iconcopy"> <copy file="${icon.dir}/${icon_src_file}" tofile="${resources.dir}/${icon_dst_file}" overwrite="true"> </copy> </target> <!--_________Package_________--> <target name="package" depends="compile, iconcopy"> <!-- Create JAD file --> <wtkjad jadfile="${final.dir}/hho.jad" jarfile="${final.dir}/hho.jar" name="${MIDletSuite}" vendor="NINJA Mobile,Inc"> <!-- Add user-defined attributes to the JAD --> <attribute name="MicroEdition-Profile" value="${MicroEdition-Profile_version}"/> <attribute name="MicroEdition-Configuration" value="${MicroEdition-Configuration_version}"/> <attribute name="MIDlet-Version" value="1.0.0"/> <attribute name="MIDlet-Icon" value="${MIDlet_1_icon}"/> <attribute name="App-Version" value="J-1.0.0"/> <attribute name="x_handset_model" value="Blackberry"/> <attribute name="MIDlet-Delete-Confirm" value="Thanks for using Hip Hope Official"/> <attribute name="MIDlet-Delete-Notify" value="http:hho.com"/> <!-- Add additional MIDlets to the suite, if necessary --> <midlet name="${MIDlet_1_name}" icon="${MIDlet_1_icon}" class="${MIDlet_1_class}"> </midlet> </wtkjad> <!-- Create JAR file, obfuscating if desired --> <wtkpackage jarfile="${final.dir}/hho.jar" jadfile="${final.dir}/hho.jad" config="${MicroEdition-Configuration_version}" profile="${MicroEdition-Profile_version}" obfuscate="false" preverify="false"> <fileset dir="${classes.dir}"> <include name="**/*"/> </fileset> <fileset dir="${resources.dir}"> <exclude name="**/*.db"/> <include name="**/*"/> </fileset> </wtkpackage> <!-- Copy the JAD file to the final output directory --> <!-- No longer necessary as it is done by wtkjad/wtkpackage <copy file="${MIDletSuite}.jad" tofile="${final.dir}/${MIDletSuite}.jad"/> --> </target> <!--_________Initialize_________--> <!-- Delete class file before starting --> <target name="initialize"> <echo message="Cleaning up..."/> <!-- Delete all output directories --> <delete dir="${classes.dir}"/> <!-- Create empty directories --> <mkdir dir="${classes.dir}"/> </target> </project>
thnks
ajj
Ben Souther
Sheriff
Posts: 13411
I like...
posted 15 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
"ajj",
Please check your
private messages
regarding an important administrative matter.
-Ben
Java API
J2EE API
Servlet Spec
JSP Spec
How to ask a question...
Simple Servlet Examples
jsonf
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
Warning Message When I Ran My ANT build.xml File
Preverification failed with Antenna
Error with XDoclet In Hibernate
JME Hello World
Problem packing with ant
More...