Search code examples
environment-variablesibm-mobilefirstblackberry-10windows-7-x64

IBM Worklight 6.0 - WEBWORKS_HOME environment variable not working


I tried the suggestion given in IBM Worklight - Windows - "'WEBWORKS_HOME' environment variable is undefined", but i am still getting an error:

FWLST1040E: blackberry10 build failed: the 'WEBWORKS_HOME' environment variable is not defined. Add an environment variable named 'WEBWORKS_HOME' pointing to the WebWorks SDK root folder

I am on windows 7(64 bit) and Worklight is version 6.0.

When i type "set" in command prompt i can see WEBWORKS_HOME=C:\BB10 which is the correct location and root of the SDK.

I have restarted Eclipse but the error message is shown still.


Solution

  • In addition to creating the environment variable WEBWORKS_HOME and having it point to the root folder of the BlackBerry 10 WebWorks SDK,

    Also make sure that this variable has been added to the PATH variable value.
    Meaning, that the value for PATH should now be something like this:

    C:\something;somethingElse;anotherSomething;%WEBWORKS_HOME%
    

    If that doesn't work still, try without the %'s.