首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Blackberry 7 "ant blackberry build“和"ant blackberry load-simulator”命令返回错误

Blackberry 7 "ant blackberry build“和"ant blackberry load-simulator”命令返回错误
EN

Stack Overflow用户
提问于 2013-10-15 17:15:29
回答 1查看 316关注 0票数 0

我只是想在命令提示符下运行cordova库中的一个示例应用程序。

当我尝试构建或运行应用程序时,我得到以下错误。

我还更改了project.properties文件中的webworks路径。

代码语言:javascript
复制
E:\Software\BB 7\BB7_sample_app\example>ant blackberry build
Buildfile: E:\Software\BB 7\BB7_sample_app\example\build.xml

blackberry:

build:

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

clean:
   [delete] Deleting directory E:\Software\BB 7\BB7_sample_app\example\build

package-app:
    [mkdir] Created dir: E:\Software\BB 7\BB7_sample_app\example\build\widget
     [copy] Copying 22 files to E:\Software\BB 7\BB7_sample_app\example\build\widget
      [zip] Building zip: E:\Software\BB 7\BB7_sample_app\example\build\example.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 application
     [exec] I/O Error: Cannot run program "C:\Program": CreateProcess error=2, The system cannot find the file specified
     [exec] [ERROR]                     RAPC exception occurred

BUILD SUCCESSFUL
Total time: 15 seconds

E:\Software\BB 7\BB7_sample_app\example>ant blackberry load-simulator
Buildfile: E:\Software\BB 7\BB7_sample_app\example\build.xml

blackberry:

load-simulator:

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

clean:
   [delete] Deleting directory E:\Software\BB 7\BB7_sample_app\example\build

package-app:
    [mkdir] Created dir: E:\Software\BB 7\BB7_sample_app\example\build\widget
     [copy] Copying 22 files to E:\Software\BB 7\BB7_sample_app\example\build\widget
      [zip] Building zip: E:\Software\BB 7\BB7_sample_app\example\build\example.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 application
     [exec] I/O Error: Cannot run program "C:\Program": CreateProcess error=2, The system cannot find the file specified
     [exec] [ERROR]                     RAPC exception occurred

load-simulator:
     [echo] Simulator directory=C:\Program Files (x86)\Research In Motion\BlackBerry WebWorks SDK 2.3.1.5\simpack\7.0.0.318
     [echo] Simulator directory=C:\Program Files (x86)\Research In Motion\BlackBerry WebWorks SDK 2.3.1.5\simpack\7.0.0.318
     [echo] Simulator executable=C:\Program Files (x86)\Research In Motion\BlackBerry WebWorks SDK 2.3.1.5\simpack\7.0.0.318/9930.bat
     [echo] Closing all running simulators...
     [exec] No sessions currently running.
     [exec] Result: 1
     [echo] MDS directory=C:\Program Files (x86)\Research In Motion\BlackBerry WebWorks SDK 2.3.1.5/mds

BUILD FAILED
E:\Software\BB 7\BB7_sample_app\example\build.xml:51: The following error occurred while executing this line:
E:\Software\BB 7\BB7_sample_app\example\blackberry.xml:153: E:\Software\BB 7\BB7_sample_app\example\build\StandardInstall does not exist.

Total time: 16 seconds
EN

回答 1

Stack Overflow用户

发布于 2013-10-15 19:15:58

通过将java从1.6升级到1.7,解决了此问题。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/19377415

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档