黑莓7"蚂蚁黑莓构建"和" ant黑莓加载模拟器"命令返回错误

时间:2013-10-15 09:15:29

标签: blackberry cordova blackberry-webworks

我只是想从命令提示符运行一个示例应用程序,它位于cordova库中。

当我尝试构建或运行应用程序时出现以下错误。

我也改变了project.properties文件中的webworks路径。

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

1 个答案:

答案 0 :(得分:0)

通过将java从1.6升级到1.7来解决了这个问题。