How to install .cod file of blackberry in blackberry device - blackberry

I want to tell my blackberry app in blackberry device. I searched and found that you have to place .cod, .jad and .alx file and then download and install the .jad file in the device. I did this but it said Class net.rim.device.api.command.Command not found.
I think I have to add more files or what should I do?
Thanks!

If you created this cod file , than before installing it on Blackberry Device you need to Signed it first.
See this video how to sign .
http://supportforums.blackberry.com/t5/Java-Development/Deploying-and-Signing-Applications-in-the-BlackBerry-JDE-Plug-in/ta-p/446877
Once you sign your cod file , you can install it on BB phone by .COD file or by .JAD file.
If you want to install using .JAD file , copy your .COD file into SDCARD & .JAD too. Remember if you have more than 60KB .COD file size than you need to extract it to divide into 60KB Sizes(Use 7 Zip to extract) & put in same folder as in .jad File & open .Jad file from Phone & Follow the icstruction.
If you want to install by .COD File , than you may have used BB Eclipse Env.
GOTO
<installed Eclipse folder>/plugins\net.rim.ejde.componentpack<SDK Ver>\components\bin
& paste your cod file in bin folder. Now open COmmand prompt point to this folder & use this command before it connect your BB Phone by USB to computer
JavaLoader load <cod file name>
Follow this link for more guidance
http://www.bbgeeks.com/blackberry-guides/blackberry-guide-how-to-install-third-party-applications-onto-your-blackberry-88400/

cod files with alx file are for desktop installation via usb-cable. Launch BB Desktop Manager, specify alx file and BB Desktop Manager will install cod files (described in alx-file) to the connected device.
cod files and jad file are for wireless installation. Device opens jad file in browser, and downloads and installs all cod files described in jad file.
That's it.

Related

How to bundle nativefier app to single exe file and deb file

I made a nativefier app for google calendar. But i wanted the apps to be installed from single executable file like .exe in window and .deb in Linux. how to do that ?

Download container for an app from iPhone using Xcode command line

I have developed an iOS app, this app saves some of the log, that appears in the applications container. I can download this container using Xcode > Device > Select App > Download Container menu option.
Then I can see my log file in directory ..../AppData/Documents/mylog.log
Basically process describe here https://developer.apple.com/library/ios/recipes/xcode_help-devices_organizer/articles/manage_containers.html
However I want to automate this, is there way to download an applications container using Xcode via command line?
There is a project called ios-deploy on github. https://github.com/phonegap/ios-deploy
// Download your app's Documents, Library and tmp folders
ios-deploy --bundle_id 'bundle.id' --download --to MyDestinationFolder
// List the contents of your app's Documents, Library and tmp folders
ios-deploy --bundle_id 'bundle.id' --list
// Download the Documents directory of the app only
ios-deploy --download=/Documents --bundle_id my.app.id --to ./my_download_location
Also, if you have a jailbreaked phone, you would have the most flexibility of do anything relative to file operations.
For example you could copy files using tools like 'scp', 'rsyn';

How to Sign OTA Files for Blackberry?

How do I sign blackberry files in the OTAInstaller folder? I am using phone gap and I have a
\build\OTAInstall folder that contains 1 jar file and a whole lot of .cod files.
How do I sign those cod files?
I followed this tutorial on how to setup signing but I don't know how actually run it to sign.
After following the steps within that tutorial go to...
https://build.phonegap.com/people/edit#pane=signing
Then add BlackBerry Signing key to Phonegap
CSK file and DB file can be found at
C:\Program Files (x86)\Research In Motion\BlackBerry WebWorks SDK 2.3.1.5\bin
sigtool.csk
sigtool.db
Set BlackBerry Signing Keys as default, run build again.
This is what my signing page looks like after setting a key as default.
Go in your command line to the /bin dir of the webworks sdk, for example
C:\Program Files (x86)\Research In Motion\BlackBerry WebWorks SDK 2.3.1.5\bin
then run the signature tool:
java -jar SignatureTool.jar
open any of your .cod files and use 'request signature', it will sign both your standard and otainstall files
make sure to run the tool with java 6, not java 7, it crashes on the later

Unable To Find Imported Jar File For Json ME In Blackberry JDE

I imported the Json ME jar file
downloaded from "github"
into a blackberry project in which i will need to interpret
JSON responses from a web service.
The issue is that the project fails to compile
when it encounters this line:
import org.json.JSONObject;
And gives the error
error: package org.json does not exist.
The name of the jar file is "json-1.0.jar"
How can i resolve this?.
As you have imported additional jar file, then you should get additional cod file when compilation finished. Seems that you have installed only application cod file without library cod file.
Look at the folder where your application cod file located. There must be additional cod file, related to org.json library. Sign this library and install it along with the application cod file.
If there is no library cod file exists in the compiled app folder, check your project settings. Seems that jar file has been added incorrectly or it is not accesible.
Create folder called lib within your resource folder, copy and put the jar file in lib folder right click the jar Select Build Path-> Add to build path, then import the jar if you want to use in ur project It wont through module not found exception.

Issues in signing the .COD file

I am facing issues in signing the .COD file for my Application.
Few days back, I installed the Signature key files on my machine which I received from the Blackberry support. Signature Key files were successfully installed on my machine.
Now, I want to sign my .COD file again as my .COD files have been updated. But, I am getting the following error, when I try to sign the .COD file.
The Private key could not be found.
This program requires a private key for signing all transaction between this server and the signing authority server.
The private key is contained in the sigtool.csk file which was not found.
Expected location : C:\Program Files\Research In Motion\BlackBerry JDE 5.0.0\bin\sigtool.csk
Would you like to create a new key pair file.
Well, I can not create a new key pair file as it is not allowed.
i think in your system more than one jde or jde plugin is installed.go to bin directory of jde or eclipse plugin check for sigtool.csk.if its present, right click on signaturetool.jar and select "java platform se binary", one window will appear here browse your application.cod file and request for signature.

Resources