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



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


Siemens 6AR1312-0AA04-0AA0 Axis Control Card - WARRANTY picture

Siemens 6AR1312-0AA04-0AA0 Axis Control Card - WARRANTY

$299.00



Siemens 3-424-2400A01 PC Circuit Board - WARRANTY picture

Siemens 3-424-2400A01 PC Circuit Board - WARRANTY

$399.00



10 x  SIEMENS QA120AFCN PLUG ON NEUTRAL 20A AFCI ARC FAULT BREAKERS NEW picture

10 x SIEMENS QA120AFCN PLUG ON NEUTRAL 20A AFCI ARC FAULT BREAKERS NEW

$329.95



New Siemend 6GK7343-1EX20-0XE0 6GK7 343-1EX20-0XE0 SIMATIC CP 343-1 US STOCK picture

New Siemend 6GK7343-1EX20-0XE0 6GK7 343-1EX20-0XE0 SIMATIC CP 343-1 US STOCK

$354.82



LOT OF 10 SIEMENS QA115AFCN 15A AFCI PLUG ON NEUTRAL (NO PIGTAIL WIRE) NEW picture

LOT OF 10 SIEMENS QA115AFCN 15A AFCI PLUG ON NEUTRAL (NO PIGTAIL WIRE) NEW

$358.99



Siemens 3RT1046-1AP60 Contactor picture

Siemens 3RT1046-1AP60 Contactor

$387.00







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