gpt4 book ai didi

blackberry - PhoneGap Blackberry 构建错误。该系统找不到指定的文件

转载 作者:行者123 更新时间:2023-12-02 07:02:50 25 4
gpt4 key购买 nike

我是 PhoneGap 的新手,正在尝试设置示例应用程序,我使用的是 PhoneGap 版本 2.9.0 和 apache-ant-1.9.1。

我已经配置了 apache ant,安装了 WebWorks SDK 并设置了 project.properties 文件。

错误似乎是它无法在临时文件夹中找到“CordovaExample”文件,我检查了该文件夹并且其中包含以下文件:“CordovaExample.jdp”、“CordovaExample.jdw”和“CordovaExample” .rapc'(以及其他)。我是否缺少一些配置,以便它应该搜索这 3 个文件之一,而不仅仅是“CordovaExample”?

运行'ant blackberry build'命令时出现如下错误:

jamest@JT1 /c/Development/FirstApp
$ ant blackberry build
Buildfile: c:\Development\FirstApp\build.xml

blackberry:

build:

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

clean:
[delete] Deleting directory c:\Development\FirstApp\build

package-app:
[mkdir] Created dir: c:\Development\FirstApp\build\widget
[copy] Copying 22 files to c:\Development\FirstApp\build\widget
[zip] Building zip: c:\Development\FirstApp\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 application
[exec] I/O Error: C:\Users\jamest\AppData\Local\Temp\widgetGen.584154969137
3014448670.tmp\CordovaExample (The system cannot find the file specified)
[exec] [ERROR] RAPC exception occurred

BUILD SUCCESSFUL
Total time: 8 seconds

我在网上搜索过,但找不到任何类似的问题,因此非常感谢您的帮助。

谢谢

最佳答案

确保您使用的是 JDK 6 而不是 JDK 7 - WebWorks 需要该版本 according to the BB support forums :

Please note that you need JDK6 (32-bit) to be installed and referenced by the tools. Based on the sample it seems to be referencing JDK7.

If you do not require JDK7 explicitly, the safest option is to uninstall all existing JDK/JREs from your PC (this includes both 64-bit and 32-bit) versions from Program Files and Program Files (x86); respectively. And then install only JDK6 (which automatically includes the JRE) that is 32-bit.

显然,您甚至可能需要特定版本的 JDK 6:

I noticed that JDK1.6 build 43 had the same behaviour during the packaging process [...]

I had to roll back to JDK1.6 build 30 before I could sign and package my webworks apps again.

关于blackberry - PhoneGap Blackberry 构建错误。该系统找不到指定的文件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17485073/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com