IBM Worklight - Windows - “'WEBWORKS_HOME' environment variable is undefined”

我的梦境 提交于 2019-12-10 11:37:50

问题


From the BlackBerry development tutorial I know that first I need to install the BlackBerry 10 WebWorks SDK and then set create a WEBWORKS_HOME environment variable with the SDK path.

I do not how to create the environment variable in Eclipse. I set it through Computer-> Properties-> Advanced Settings-> Environment Variables-> User Variables but it did not worked.

When I add a BlackBerry 10 environment to my application, it gives the following error in the Eclipse Worklight console:

E: blackberry10 build failed: The 'WEBWORKS_HOME' environment variable is undefined. See Worklight Information Center for details.


回答1:


The environment variable is created in the manner you have described - a dedicated environment variable with the name WEBWORKS_HOME and the value, for example: C:\Program Files\Research In Motion\BlackBerry 10 WebWorks SDK 1.0.4.11.

  • There is no need to create it in Eclipse
  • You can check that it correctly exists by opening a CMD window and typing set

Re-start Eclipse and the Build operation should now pass for the BlackBerry 10 environment.



来源:https://stackoverflow.com/questions/15739668/ibm-worklight-windows-webworks-home-environment-variable-is-undefined

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!