BlackBerry Forums Support Community
              

Closed Thread
 
Thread Tools
Old 05-26-2009, 05:43 PM   #1
covenant550
New Member
 
Join Date: May 2009
Model: 8130
PIN: N/A
Carrier: Metro PCS
Posts: 1
Default .jar to .cod errors

Please Login to Remove!

Hey guys, I've followed the forums for a bit and just recently decided to make an account. I got a BB pearl 8130 and I have some .jar files I've been trying to convert to .cod. I used "rcjr's" .bat file But it only makes me .alx files. Im typng in everything correctly because I'm just cutting and pasting my file directories. Can someone explain what I'm doing wrong, Make me a .bat file, or even convert my .jar's for me? Thanks for ANY help. Heres the .bat file I've been trying to use that just gives me .alx:

Quote:
@echo off
cls

:: get jde location
set jde=
set /p jde=what is the complete path to your Blackberry JDE directory?
echo.

:: get jad and jar locations
set sve=
set /p sve=enter the complete path where your jad and jar files are located:
echo.

:: get the name of the jad and jar files
set jar=
set /p jar=what is the name of your jar file?
echo.

:: copy jad and jar files to the jde directory
xcopy "%sve%\%jar%.jad" "%jde%\bin\"
xcopy "%sve%\%jar%.jar" "%jde%\bin\"

::create the cod files
cd /d "%jde%/bin"
pause
rapc import="%jde%\lib\net_rim_api.jar" codename=%jar% -midlet jad=%jar%.jad %jar%.jar
pause

:: move the cod file to the jad and jar directory
move "%jde%\bin\%jar%.*" "%sve%\"
pause


:: change to the new directory
cd /d %sve%

:: create the new alx file

echo ^<loader version="1.0"^> >%jar%.alx
echo ^<application id="%jar%"^> >>%jar%.alx
echo ^<name^>%jar%^</name^> >>%jar%.alx
echo ^<description^>%jar%^</description^> >>%jar%.alx
echo ^<version^> ^</version^> >>%jar%.alx
echo ^<vendor^> ^</vendor^> >>%jar%.alx
echo ^<copyright^> ^</copyright^> >>%jar%.alx
echo ^<fileset Java="1.0"^> >>%jar%.alx
echo ^<files^>%jar%.cod^</files^> >>%jar%.alx
echo ^</fileset^> >>%jar%.alx
echo ^</application^> >>%jar%.alx
echo ^</loader^> >>%jar%.alx
pause

:end
Offline  
Old 05-27-2009, 08:48 AM   #2
littleman
Talking BlackBerry Encyclopedia
 
Join Date: Sep 2008
Model: 9700
PIN: N/A
Carrier: att
Posts: 373
Default

Wirelessly posted (curv 8310)

I know on the 8310 I can install .jar files. That would be easier then converting them to install it.
I place the .jar on the mc
Explore to the file and run it.
It will say its downloading the file even though it isn't and install. Works fine for me.
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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


SOLA 25-399 1.5KVA Constant Voltage Transformer 1500VA 112 X 236V picture

SOLA 25-399 1.5KVA Constant Voltage Transformer 1500VA 112 X 236V

$325.00



ABB Voltage detection Board picture

ABB Voltage detection Board

$1394.60



AVR EA16 Automatic Voltage Regulator Compatible With KUTAI Generator GENSET picture

AVR EA16 Automatic Voltage Regulator Compatible With KUTAI Generator GENSET

$99.90



DC 120V 200A Voltage Current Ah Capacity Meter Charge Discharge AGM LEAD LiFePO4 picture

DC 120V 200A Voltage Current Ah Capacity Meter Charge Discharge AGM LEAD LiFePO4

$29.90



Renogy 500A Battery Monitor High and Low Voltage Programmable Alarm 500A Shunt picture

Renogy 500A Battery Monitor High and Low Voltage Programmable Alarm 500A Shunt

$70.99



Waterproof 12V LED Car Van Boat Marine Voltmeter Voltage Meter Battery Gauge US picture

Waterproof 12V LED Car Van Boat Marine Voltmeter Voltage Meter Battery Gauge US

$7.99







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