User42590
User42590

Reputation: 2521

IBM Worklight - Windows - "'WEBWORKS_HOME' environment variable is undefined"

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.

Upvotes: 1

Views: 1023

Answers (1)

Idan Adar
Idan Adar

Reputation: 44516

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.

Upvotes: 3

Related Questions