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

Allen Bradley SLC 500 Processor Unit 1747-L511 SER B FRN 6
$300.0
Allen Bradley SLC 500 Processor Unit  1747-L511 SER B   FRN 6  pictureAllen-Bradley 1756-L55/A CPU Module and 1756-M14/A Memory Expansion Module
$44.95
Allen-Bradley 1756-L55/A CPU Module and 1756-M14/A Memory Expansion Module pictureAdvantech PCA-6003VE PCA-6003 Rev A1 with cpu and memory A+ condition Used
$49.33
Advantech PCA-6003VE PCA-6003 Rev A1 with cpu and memory A+ condition Used pictureToshiba ACTU2A CIX100 Processor
$75.0
Toshiba ACTU2A CIX100 Processor pictureMicrochip MPLAB ICE 2000 Microchip Development Tools PCM16XKO processor module
$99.0
Microchip MPLAB ICE 2000 Microchip Development Tools PCM16XKO processor module picture






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