http://phonegap.pbworks.com/Getting+Started+with+PhoneGap-BlackBerry+with+the+Latest+Environment
引用
Getting Started with PhoneGap-BlackBerry with the Latest EnvironmentPage history last edited by Michael Brooks 1 hour ago
Getting Started with PhoneGap-BlackBerry (Latest Environment)
This article explains how to setup the latest BlackBerry development environment. If you have trouble with this article, you may want to setup the legacy environment.
The BlackBerry developer environment is an Eclipse Plugin that includes a BlackBerry simulator and tools for application packaging / deployment.
Important
•This guide is intended for Windows. It has been tested on Windows XP x86 and x64.
•OS X partially works, but Eclipse cannot detect installed versions of JDE.
•Currently, PhoneGap does not run on JDE 5.0.
Sun JDK
1.Download the latest version of the Java Developer Kit (JDK).
◦At the time of writing this article, the latest version is JDK 6 Update 20.
◦You must install a 32-bit version of the JDK.
◦The BlackBerry Plugin can only recognize a 32-bit JDK and Eclipse IDE.
2.Install the JDK.
◦During the installation, you will be asked to install the Java Runtime Environment (JRE) - please do this.
Eclipse IDE
1.Download the latest version of the Eclipse IDE for Java Developers (or Eclipse IDE Classic).
◦At the time writing of this article, the latest version is Eclipse 3.5.2 (Galileo).
2.Install the Eclipse IDE.
◦Install by extracting the ZIP archive to a desired installation directory.
◦e.g. C:\Program Files\Eclipse\Eclipse-3.5.2 3.Run the Eclipse IDE for the first time.
◦To ensure there are no problems with the installation.
4.Close the Eclipse IDE.
BlackBerry Plugin for Eclipse
1.Download the latest BlackBerry Plugin for Eclipse.
◦You will need a BlackBerry Developer Zone account (free).
◦The Plugin's name is misleading. BlackBerry Java Plugin for Eclipse v1.1 means the Plugin version is 1.1 (not Eclipse).
2.Install the Plugin to the Eclipse directory.
◦Make sure Eclipse is closed.
◦The Plugin must be installed into the root of your Eclipse directory.
◦e.g. C:\Program Files\Eclipse\Eclipse-3.5.2\
BlackBerry JDE Component Packs
The JDE component packs allow you to build your Blackberry application for a specific Blackberry platform. By default, the BlackBerry Plugin includes JDE 5.0.
1.Open the Eclipse IDE
2.Select Help > Install Software
3.Click the button Add..
◦Name: <Leave blank>
◦Location: http://www.blackberry.com/go/eclipseUpdate/3.5/java
4.Select the JDE component packs.
◦Select version 4.7.
◦Select other version that you want.
5.Click OK
6.Select Next > Next > Finish
◦There is a legal agreement on the last window
7.When the Authentication prompt appears
◦Username & Password is your BlackBerry Developer Zone account.
◦If multiple login prompts appear, then enter your credentials into each.
■Cancelling any login prompt will cancel the installation.
8.Restart Eclipse when prompted.
◦Do it. Restarting Eclipse is important.
PhoneGap Application Setup
Create a BlackBerry Project
1.Open the Eclipse IDE.
2.Select File > New > Project...
3.Select BlackBerry Project
4.Press Next
5.On the Create a BlackBerry Project screen
◦Project Name: Enter a name for your application
◦Use Project Specific JRE: Select JRE 4.7 or under
■JRE 5.0 does not currently work with PhoneGap
6.Press Finish.
Import the PhoneGap-BlackBerry Project
1.Download the PhoneGap-BlackBerry source.
◦Click the Download Source button in the top-right.
2.Extract the PhoneGap-BlackBerry source.
◦e.g. C:\PhoneGap-BlackBerry\3.Copy & paste the following directories:
◦C:\PhoneGap-BlackBerry\framework\example => C:\<Your Eclipse Project Path>\src\example◦C:\PhoneGap-BlackBerry\framework\src\com => C:\<Your Eclipse Project Path>\src\com4.Rename \example to \www
◦C:\<Your Eclipse Project Path>\src\example => C:\<Your Eclipse Project Path>\src\www5.Open the Eclipse IDE
i.Right-click on your BlackBerry-PhoneGap project
ii.Select Refresh
■You should now see \com and \www packages under the \src tree
Run the PhoneGap-BlackBerry Project in the Simulator
1.Open the Eclipse IDE
2.Right-click on your PhoneGap-BlackBerry Project
◦Select Run As > BlackBerry Simulator
3.The simulator will open and run your application.
◦The application can be found in the simulator's Downloads directory.
分享到:
相关推荐
Eclipse Getting Started All you need to do is ensure that ./libs/phonegap.jar. Simply right click on ./libs and select Build Path > Configure Build Path. Choose Java Build Path and select the ...
IONIC+PhoneGap项目源码,爱下不下
phoneGAP就是Cordova,据说执行起来比网页快, Android, ios通吃
一个完整的phonegap与android的例子。用在pad上,包含一些自定义插件。
phonegap,cordova2.9源代码,以及自带的示例程序
PhoneGap html5 拍照上传DEMO
基于android ,phonegap调用照相机拍照,图片保存
使用phonegap基于jquery mobile、jqMobi的相关Demo实例。
phonegap-cli, PhoneGap和 PhoneGap/构建 命令行 接口 PhoneGap命令行接口和 node.js 库。命令行命令行要求安装 node.js 版本 >=4.0.0安装 iOS sim 将应用程序部署到iOS模拟器。安装$ npm install
PhoneGap 2.9.0
phoneGap手机安装apk,开发phoneGap项目 的时候方便调试
一个ionic+phonegap框架的webapp实例源码
phonegap 最新桌面版,版本号:6.3.0
用PhoneGap访问设备本地API可以实现调用以下具体设备 PhoneGap如何实现调用不同平台手机上的设备功能 PhoneGap开发ios应用是否要交年费? 答:需要,因为编译后同ios的本地应用没有区别,同样要通过许可证发布到App...
介绍PhoneGap的原理,优势,以及和其他平台的对比
跨平台开发技术-PhoneGap从入门到精通(PhoneGap、罗盘、运动传感器、地理位置
1.2 GETTING STARTED WITH ANDROID 5 1.3 GETTING STARTED WITH OTHER PLATFORMS 8 2. DESIGNING WITH WEB-STANDARDS 10 2.1 DESKTOP BROWSERS 10 2.2 DEVELOPING WEB APPLICATION 10 2.3 USING THE WEB INSPECTOR ...
该Simple已经实现了GPS定位,重力感应,声音调用,振动,摄像头调用... PhoneGap是一款开源的手机应用开发平台,它... 目前,PhoneGap已实现对iPhone/ipad、Android、Symbian,Palm、黑莓各版本绝大部分功能的支持.
phonegap项目环境搭建,PhoneGap的环境搭建及helloworld的实现
它使开发者能够利用iPhone,Android,Palm,Symbian,WP7,Bada和Blackberry智能手机的核心功能——包括地理定位,加速器,联系人,声音和振动等,此外PhoneGap拥有丰富的插件,可以以此扩展无限的功能。PhoneGap是...