I\'m working to set up the BlackBerry 10 environment on IBM worklight on Mac OS X. I\'m pretty sure that I correctly added the environment variable for the WebWorks SDK.
The following worked for me.
Install the latest BlackBerry 10 WebWorks SDK from this location: https://developer.blackberry.com/html5/downloads/?os=mac#blackberry10
As I was unable/unsure how to work with spaces in the variable path (there is a way to do so, I just haven't figured it out), I renamed the path folders:
From: /Developer/SDKs/Research In Motion/BlackBerry 10 WebWorks SDK 1.0.4.11
To: /Developer/SDKs/RIM/1.0.4.11
Open the Terminal application and
sudo vi /etc/launchd.conf
setenv WEBWORKS_HOME /Developer/SDKs/RIM/1.0.4.11
:wq
to save and quit VI