Thursday, 16 January 2014

How to Build and Test Blackberry Phonegap application on simulator in Windows

Cordova for BlackBerry makes use of the BlackBerry WebWorks framework. BlackBerry WebWorks tooling is available for Windows or Mac environments.

WebWorks applications can ONLY be deployed to the following BlackBerry platforms:

BlackBerry OS 5.0 and higher
BlackBerry PlayBook
BlackBerry 10 (QNX)

============================

Requirements
============================
windows 64 or 32 bit
Java Development Kit (JDK)(32 bit)
Apache Ant
Windows: Apache Ant.

=========================
Install sdk for the above
=========================
[BlackBerry 10 (QNX) SDK] (https://developer.blackberry.com/html5/download/#blackberry10)
[BlackBerry PlayBook SDK] (https://developer.blackberry.com/html5/download/#playbook) & Adobe Air SDK
[BlackBerry Smartphones SDK] (https://developer.blackberry.com/html5/download/#smartphones)

=========================
Install simulators
=========================
install simulators for the apropriate version

for blackberry 10 and playbook adobe air sdk require before installation and VMplayer is required to run the simulators.

=========================
Register for Signing Keys
=========================
for registering signing key Click Here

========================
Install Cordova
========================
1- npm install -g phonegap

2-  npm install cordova

====================

Edit the project property file
===========================
blackberry.bbwp.dir=
playbook.bbwp.dir=
qnx.bbwp.dir=

to 

blackberry.bbwp.dir=C:\\Program Files (x86)\\Research In Motion\\BlackBerry WebWorks SDK 2.3.1.5
playbook.bbwp.dir=C:\\Program Files (x86)\\Research In Motion\\BlackBerry WebWorks SDK for TabletOS 2.2.0.5\\bbwp
qnx.bbwp.dir=C:\\Program Files (x86)\\Research In Motion\\BlackBerry 10 WebWorks SDK 1.0.4.11

=========================



Build project
====================
go to project directory and build by following command

ant qnx buil // for blackberry 10
ant playbook build // for playbook
ant blackberry build // for blackberry smartphones





If error loading jvm.dll occurs then set java path to  C:\Program Files (x86)\Research In Motion\BlackBerry WebWorks SDK for TabletOS 2.2.0.5\jre\bin

===================
load to simulator
==================

ant qnx load-simulator
ant playbook load-simulator
ant blackberry load-simulator 

for qnx and playbook simulators must be enable/on before the load-simulator command.

No comments:

Post a Comment