BlackBerry Forums Support Community               

Closed Thread
 
LinkBack Thread Tools
Old 05-09-2008, 06:21 AM   #1 (permalink)
New Member
 
Join Date: Apr 2008
Location: Oxford
Model: 8310
PIN: N/A
Carrier: Vodafone
Posts: 2
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default RAPC will not run from the command line

Please Login to Remove!

Hi,

I have written this batch file to convert a .jad file to .cod. when I run the script RAPC does nothing. I have included the script, any thoughts anybody....

cls
echo off
xcopy "Test.jad" "C:\Program Files\Research In Motion\BlackBerry JDE 4.3.0\bin\"
xcopy "Test.jar" "C:\Program Files\Research In Motion\BlackBerry JDE 4.3.0\bin\"

echo on
::create the cod files
set PATH=%JAVA_HOME% C:\j2sdk1.4.2_13

cd /d "C:\Program Files\Research In Motion\BlackBerry JDE 4.3.0\bin"

rapc.exe import="C:\Program Files\Research In Motion\BlackBerry JDE 4.3.0\lib\net_rim_api.jar" codename=Test -midlet jad=Test.jad Test.jar
pause


echo off
:: move the cod file to the jad and Test directory
move "C:\Program Files\Research In Motion\BlackBerry JDE 4.3.0\bin\Test.*" "C:\Program Files\Research In Motion\BlackBerry JDE 4.3.0"

cd /d C:\Program Files\Research In Motion\BlackBerry JDE 4.3.0

del Test.alx
del Test.cod

:: create the new alx file

echo ^<loader version="1.0"^> >Test.alx
echo ^<application id="Test"^> >>Test.alx
echo ^<name^>Test^</name^> >>Test.alx
echo ^<description^>Test^</description^> >>Test.alx
echo ^<version^> ^</version^> >>Test.alx
echo ^<vendor^> ^</vendor^> >>Test.alx
echo ^<copyright^> ^</copyright^> >>Test.alx
echo ^<fileset Java="1.0"^> >>Test.alx
echo ^<files^>Test.cod^</files^> >>Test.alx
echo ^</fileset^> >>Test.alx
echo ^</application^> >>Test.alx
echo ^</loader^> >>Test.alx
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

80pcs 25V 330uF 25V NCC GXE 10x16mm Low Impedance Long Life Capacitor
$11.99
80pcs 25V 330uF 25V NCC GXE 10x16mm Low Impedance Long Life Capacitor pictureImpedance Bridge By Beco Model 250-01 Serial 517 Inventory 4933 Brown Electro Me
$250.0
Impedance Bridge By Beco Model 250-01 Serial 517 Inventory 4933 Brown Electro Me pictureADVANCED ENERGY AE RFZ 60 13.56 MHZ Plasma Impedance Probe
$250.0
ADVANCED ENERGY AE RFZ 60 13.56 MHZ Plasma Impedance Probe pictureWayne Kerr 65120BD1B1 Impedance Analyzer w/ DC Bias, Non-Isolated Bin
$39905.0
Wayne Kerr 65120BD1B1 Impedance Analyzer w/ DC Bias, Non-Isolated Bin picture200pcs 25V 120uF 25V NCC LXV 6.3x15mm Low impedance Long Life Capacitor
$12.99
200pcs 25V 120uF 25V NCC LXV 6.3x15mm Low impedance Long Life Capacitor picture






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