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


High Vacuum Chamber Viewport Window - 4.5” Conflat picture

High Vacuum Chamber Viewport Window - 4.5” Conflat

$200.00



Appion MGAVCT 1/4 Inches MegaFlow Vacuum-Rated Valve Core Removal Tool picture

Appion MGAVCT 1/4 Inches MegaFlow Vacuum-Rated Valve Core Removal Tool

$65.08



4.5 CFM Single-Stage Rotary Vacuum Pump HVAC/Auto AC 4.5CFM 1/3HP 1/4

4.5 CFM Single-Stage Rotary Vacuum Pump HVAC/Auto AC 4.5CFM 1/3HP 1/4"ACME inlet

$29.34



Barksdale D1H-A150SS Diaphragm Pressure or Vacuum Actuated Switch *NEW OPEN BOX* picture

Barksdale D1H-A150SS Diaphragm Pressure or Vacuum Actuated Switch *NEW OPEN BOX*

$169.99



FEBCO 765DBV 3/4in Bronze FNPT Pressure Vacuum Breaker NEW picture

FEBCO 765DBV 3/4in Bronze FNPT Pressure Vacuum Breaker NEW

$89.99



VEVOR 5 Gallon Vacuum Chamber with 5CFM Vacuum Pump Kit 1/3HP Single Stage 110V picture

VEVOR 5 Gallon Vacuum Chamber with 5CFM Vacuum Pump Kit 1/3HP Single Stage 110V

$105.99







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