Phonegap Blackberry应用程序构建不生成StanderedInstall.zip和OTAInstall文件

时间:2013-05-20 10:34:41

标签: cordova blackberry-webworks phonegap-build

我正在开发一个phonegap App。我成功为Android开发了这个应用程序,我正在使用Blackberry进行部署。 我遵循phonegap网站上列出的指南 http://docs.phonegap.com/en/2.3.0/guide_getting-started_blackberry_index.md.html#Getting%20Started%20with%20BlackBerry

所以我只是复制示例文件夹并尝试使用命令行进行部署,但我没有获得OTAInstall和StanderedInstall文件。

这是我的cmd输出: -

C:\Users\Dell\workspace\DSS>ant blackberry build
Unable to locate tools.jar. Expected to find it in C:\Program Files\Java\jre7\li
b\tools.jar
Buildfile: C:\Users\Dell\workspace\DSS\build.xml

blackberry:

build:

generate-cod-name:
     [echo] Generated name: cordovaExample.cod

clean:
   [delete] Deleting directory C:\Users\Dell\workspace\DSS\build

package-app:
    [mkdir] Created dir: C:\Users\Dell\workspace\DSS\build\widget
     [copy] Copying 22 files to C:\Users\Dell\workspace\DSS\build\widget
      [zip] Building zip: C:\Users\Dell\workspace\DSS\build\cordovaExample.zip

build:
     [exec] [INFO]                      Parsing command line options
     [exec] [INFO]                      Parsing bbwp.properties
     [exec] [INFO]                      Validating application archive
     [exec] [INFO]                      Parsing config.xml
     [exec] [INFO]                      Populating application source
     [exec] [INFO]                      Compiling BlackBerry WebWorks applicatio
n
     [exec] I/O Error: Cannot run program "C:\Program": CreateProcess error=2, T
he system cannot find the file specified
     [exec] [ERROR]                     RAPC exception occurred

BUILD SUCCESSFUL
Total time: 27 seconds

C:\Users\Dell\workspace\DSS>

我在project.properties中所做的修改如下: -

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


blackberry.mds.dir=C:\\Program Files\\Research In Motion\\BlackBerry Email and MDS Services Simulators 4.1.4\\MDS


blackberry.sigtool.password=prvnsharma


playbook.sigtool.csk.password=prvnsharma
playbook.sigtool.p12.password=prvnsharma


qnx.sigtool.password=prvnsharma


blackberry.sim.password=prvnsharma
请大家帮助我。

2 个答案:

答案 0 :(得分:2)

我自己通过将JDK降级到1.7到JDK 1.6来解决它。我不知道发生了什么事。但是在JDK 1.6.43之上,ant build有这些错误。

答案 1 :(得分:0)

我有同样的问题,似乎是关于java安装在“Program Files”下的两个单词之间的空间抛出错误,我更改了java文件夹(和ant配置到该文件夹​​)并且它工作正常细