编译错误 Black Berry WebWordks SDK
我无法使用 bbwp 工具编译代码。
看一下屏幕截图,请指出我做错了什么
谢谢
在屏幕截图中
- 警告:关于元素,我知道它在 config.xml 中,但不确定要放入其中的内容。
- 错误:关于 jvm.dll 以及该文件存在于路径中,我已经检查过。
i am unable to compile the code using bbwp tool.
Take a look at the screenshot and please point-out what i am doing wrong
Thanks
In the screen-shot
- WARNING: about element, i know its in config.xml but not confirm what to put in it.
- ERROR: about jvm.dll well that file exists on the path, i have checked it.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
搜索了一段时间后发现是MSCR71.dll的问题,在Win7中将其放在windows/system32中,但不起作用,但在winxp上可以。
After searching for a while found out that MSCR71.dll was the problem, placed it in windows/system32 in Win7 but did not worked but worked on winxp.
针对 Windows 7 和 Windows 8 的修复
如果您遇到此问题并且使用的是 Windows 7 64 位或 Windows 8 64 位,我已使用以下步骤成功解决了此问题:
设置 JAVA_HOME 环境变量,例如:
Set JAVA_HOME=C:\Program Files (x86)\Java\jdk1.7.0_07\jre
执行上述步骤后,您应该不再看到该错误。
注意:我使用的是以下版本:
Fix for Windows 7 and Windows 8
If you are having this issue and are in Windows 7 64bit or Windows 8 64bit, I have tackled this problem successfully using the following steps:
Set the JAVA_HOME environment variable, for example:
Set JAVA_HOME=C:\Program Files (x86)\Java\jdk1.7.0_07\jre
After doing the above steps, you should no longer see the error.
Note: I was working with the following versions:
如果您有
%JAVA_HOME%
环境变量(可能来自之前的设置),必须将其设置为指向所属的新jre文件夹
BlackBerry WebWorks SDK 安装文件夹。
同样在
%PATH%
环境变量中,如果您有一个指向以前的 JDK 或 JRE \bin 文件夹(对于 java.exe),您必须
将该文件夹更改为指向新的 JRE\bin 文件夹
BlackBerry WebWorks SDK 安装文件夹。
还可以使用文本编辑器检查
bbwp.properties
文件(该文件位于BlackBerry WebWorks SDK 安装文件夹中的 \bbwp\bin 文件夹),
有一个 java 部分,它必须是空的,例如
或包含 BlackBerry 的 \jre 的完整路径WebWorks SDK 安装文件夹就像 JAVA_HOME 的安装文件夹一样。
示例“BlackBerry WebWorks SDK 安装文件夹 \jre”(基于上面的屏幕截图):
If you have a
%JAVA_HOME%
environment variable (maybe from a previoussetting), it must be set to point to the new jre folder that belongs to
the BlackBerry WebWorks SDK install folder.
Also in the
%PATH%
environment variable, if you have a path that points to aprevious JDK or JRE \bin folder (for java.exe) you'll have to
change that one to point to the new JRE\bin folder from the
BlackBerry WebWorks SDK install folder.
Also with a text editor check the
bbwp.properties
file (the file is in\bbwp\bin folder from the BlackBerry WebWorks SDK install folder),
there is a section for java, it has to be either empty like
<java></java>
or contain the full path to the \jre for the BlackBerryWebWorks SDK install folder just like the one for JAVA_HOME
Sample "BlackBerry WebWorks SDK install folder \jre" based on screenshot above: