问题
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