BKJIA Translation]
1,Requirements
◆ Windows XP (32-bit) or Windows 7 (32-bit and 64-bit)
◆ For a 4.x device, see this guide.
2,Install SDK + PhoneGap
Download and install Sun JDK 32-bit ). Add it to your PATH variable.
Download and decompress Apache Ant. Add it to your PATH variable.
Download the BlackBerry WebWorks SDK and install it in C: \ BBWP.
Download the latest version of PhoneGap and decompress it to C: \ Dev \ phonegap.
3,Create a new project
◆ Open the command window and go to the BlackBerry \ WebWorks directory. Enter ant create-Dproject. path = C: \ Dev \ phonegap \ BlackBerry \ WebWorks \ sample and press Enter.
◆ Switch to the newly created Directory, which is located in C: \ Dev \ phonegap \ BlackBerry \ WebWorks \ sample.
◆ Open the project. properties file in your frequently-used editor and change bbwp. dir = to bbwp. dir = C: \ BBWP.
4,Hello World
In the project directory, enter ant build in the Command window to build the PhoneGap sample project. Note: This is a sample PhoneGap project, not a basic Hello World application. If you want to say Hello world, you can edit the index.html file in the project wwwdirectory to say Hello World.
5A,Deploy to Simulator
• When you are in the project directory, enter ant load-simulator at the command prompt.
• Press the BlackBerry button on the simulator to go To the download section. You will see that your application has been installed there.
5B,Deploy to Device
• You must enter this form to obtain your signature key from RIM.
• When you are in the project directory, enter ant load-simulator at the command prompt.
• Press the BlackBerry button on the simulator to go To the download section. You will see that your application has been installed there.
It's done!
You can also view the detailed guide here.