BlackBerry Forums Support Community
              

Closed Thread
 
LinkBack Thread Tools
Old 05-21-2009, 08:10 AM   #1 (permalink)
New Member
 
Join Date: May 2009
Model: 8320
PIN: N/A
Carrier: TIM
Posts: 2
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default Error when convert jar file to .cod

Please Login to Remove!

Hello all, I wrote a midlet application use Eclipse IDE + WTK
+ kxml , i deploy to .jar and .jad file, it runs ok on Nokia, but i can't convert to .cod run on blackberry. I use the command:

"rapc import="C:\Program Files\Research In Motion\BlackBerry? JDE 4.1.0\lib\net_rim_api.jar" codename =mBanking -midlet jad=mBanking.jad mBanking.jar"

It appears error:

Parsing import: C:\Program Files\Research In Motion\BlackBerry? JDE 4.1.0\lib\net _rim_api.jar(net_rim_xml.cod) Resolving org.kxml.wap.Wml: Error!: invalid constant pool index: 0 in <clinit>

Please help, thanks very much
Offline  
Old 05-22-2009, 02:32 AM   #2 (permalink)
Knows Where the Search Button Is
 
Join Date: Apr 2009
Model: 8100
PIN: N/A
Carrier: vodafone
Posts: 33
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

you can simple convert jar file to cod file with foll. method:

1) create a batch file "jartocod.bat" with foll. params.:
(Change path as needed)

@ECHO "Syntax: jartocod.bat JAD_NAME JAR_NAME OUTPUT_NAME"
:RUN
@"C:\Program Files\Research In Motion\BlackBerry JDE 4.5.0\bin\rapc" import="C:\Program Files\Research In Motion\BlackBerry JDE 4.5.0\lib\net_rim_api.jar" codename=%3 -midlet jad=%1 %2

2)create another "installcod.bat" file with :

@ECHO "Syntax: installcod.bat COD_NAME.cod"
:RUN
@"C:\Program Files\Research In Motion\BlackBerry JDE 4.5.0\bin\JavaLoader" -u load %1

3)Place the jar and jad files of ur application at same location where above 2 batch files are located.

4) run jartocod.bat from cmd promt and provide jad ,jar and cod file name as parameters.

try out.
This might help you.
Offline  
Old 05-25-2009, 02:45 AM   #3 (permalink)
New Member
 
Join Date: Apr 2008
Location: USA
Model: 8320
PIN: N/A
Carrier: ·T···Mobile
Posts: 3
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

Where do you get the needed files/programs to do this?

Quote:
Originally Posted by itsteju View Post
you can simple convert jar file to cod file with foll. method:

1) create a batch file "jartocod.bat" with foll. params.:
(Change path as needed)

@ECHO "Syntax: jartocod.bat JAD_NAME JAR_NAME OUTPUT_NAME"
:RUN
@"C:\Program Files\Research In Motion\BlackBerry JDE 4.5.0\bin\rapc" import="C:\Program Files\Research In Motion\BlackBerry JDE 4.5.0\lib\net_rim_api.jar" codename=%3 -midlet jad=%1 %2

2)create another "installcod.bat" file with :

@ECHO "Syntax: installcod.bat COD_NAME.cod"
:RUN
@"C:\Program Files\Research In Motion\BlackBerry JDE 4.5.0\bin\JavaLoader" -u load %1

3)Place the jar and jad files of ur application at same location where above 2 batch files are located.

4) run jartocod.bat from cmd promt and provide jad ,jar and cod file name as parameters.

try out.
This might help you.
Offline  
Old 05-25-2009, 02:57 AM   #4 (permalink)
New Member
 
Join Date: May 2009
Model: 8320
PIN: N/A
Carrier: TIM
Posts: 2
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

2 files .bat are the same way that i convert to .cod file. It still appear error:

Parsing import: C:\Program Files\Research In Motion\BlackBerry? JDE 4.1.0\lib\net _rim_api.jar(net_rim_xml.cod) Resolving org.kxml.wap.Wml: Error!: invalid constant pool index: 0 in <clinit>
Offline  
Closed Thread


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

ANDO AQ7410 High Resolution Reflectometer Controller Mainframe only
$1450.0
ANDO AQ7410 High Resolution Reflectometer Controller Mainframe only pictureNATIONAL INSTRUMENTS SCXI-1001 12 SLOT RACK SCXI MAINFRAME (D1)
$150.0
NATIONAL INSTRUMENTS SCXI-1001 12 SLOT RACK SCXI MAINFRAME (D1) pictureHP AGILENT KEYSIGHT E8403A VXI MAINFRAME 1000W PSU 6*E4861A 4*E4861B 2*E4808A+
$999.99
HP AGILENT KEYSIGHT E8403A VXI MAINFRAME 1000W  PSU 6*E4861A 4*E4861B 2*E4808A+ picture10ft Flint & Walling Star #7 Windmill Main Frame
$14.99
10ft Flint & Walling Star #7 Windmill Main Frame pictureHP Agilent 83595A Industrial Digital .01-26.5Ghz RF Plug-In For 8350B Mainframe
$1599.99
HP Agilent 83595A Industrial Digital .01-26.5Ghz RF Plug-In For 8350B Mainframe picture






Copyright © 2004-2016 BlackBerryForums.com.
The names RIM © and BlackBerry © are registered Trademarks of BlackBerry Inc.