Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Web and WebWorks Development

Reply
New Contributor
ReelAlien
Posts: 8
Registered: ‎10-20-2012
My Device: Playbook
My Carrier: Rogers

Installing WebWorks Tablet Development Tools on Win 7


After more research I've determined that I'm not the only one who's found
the install sequence for the WebWorks Tablet tools to be a bit troublesome.

After a couple of attempts I got it all installed and running from remote servers
and a localhost on this Win 7 64-bit box.

 

Here's how I did it:


1. Download and extract the Adobe AIR SDK

 

http://www.adobe.com/devnet/air/air-sdk-download.html (Zip File Format)

 

Note: Keep a note of the extraction folder for Adobe AIR, it's required in the WebWorks SDK install in Step 2.

 

I extracted to: 'C:\Adobe Air'

 


2. Download and install the WebWorks Tablet SDK

 

https://developer.blackberry.com/html5/downloads/fetch/WebWorks-Tablet-Win-v2.2.exe

 

Default install folder is: 'C:\Program Files (x86)\Research In Motion\BlackBerry WebWorks SDK for TabletOS 2.2.0.5'

 


3. Download and install the Ripple Emulator extension in Google Chrome

 

https://developer.blackberry.com/html5/downloads/fetch/ripple_ui.crx


OK, this all went well. I can open examples with Ripple from remote Web sites,
but not my local example files. Now if you look at the Ripple 'Mission Control'
window it says...

 

"The services will give you the ability to build, sign, and deploy your
BlackBerry WebWorks application as well as provide you with a local web
server on port 9910."

 

Well, the 'localhost:9910' address can not be found by Chrome.

This is a common problem it appears, but can be quickly remedied by

installing a 'real' Web server on your machine. I chose Apache.

 


4. Download and install Apache Web server


Download Apache here:

 

http://apache.mirror.nexicom.net//httpd/binaries/win32/httpd-2.2.21-win32-x86-no_ssl.msi

 

I installed Apache to: 'C:\Apache2.2'


Here's a great step-by-step on installing Apache on Win 7:

 

http://www.webdevelopersnotes.com/how-do-i/install-apache-windows-7.php


That was easy.

 

Now I just copied the 'kitchenSink' example folder to:

 

C:\Apache2.2\htdocs\

C:\Apache2.2\htdocs\kitchenSink


Now I opened the kitchenSink example in Chrome:

 

http://localhost/kitchenSink/index.html

 

and then start Ripple and 'Bob's Your Uncle!

 


Now the 'real' fun begins!

 

 

Please use plain text.
Developer
The_Anomaly
Posts: 322
Registered: ‎08-06-2012
My Device: Dev Alpha / Playbook / Curve 9300

Re: Installing WebWorks Tablet Development Tools on Win 7

Nice post!

If it helped you, click like. :smileyhappy:
Please use plain text.
BlackBerry Development Advisor
chadtatro
Posts: 619
Registered: ‎10-01-2009
My Device: Z10
My Carrier: Bell

Re: Installing WebWorks Tablet Development Tools on Win 7

FYI: For Ripple, you can set the flag " --allow-file-access-from-files " in your chrome.exe shortcut, and it'll allow access to local files without the need for any sort of web server, or localhost.

Chad Tetreault | App Development Consultant | BlackBerry Developer Relations | developer.blackberry.com | @chadtatro
Please use plain text.
New Contributor
ReelAlien
Posts: 8
Registered: ‎10-20-2012
My Device: Playbook
My Carrier: Rogers

Re: Installing WebWorks Tablet Development Tools on Win 7

Hey chadtatro,

 

Thanks for that. Would definitely save the on installing the Web server. In my case, I was going to set up PHP/MySQL on this box anyway.

 

Here's a little side note regarding the ' --allow-file-access-from-files ' command-line switch

 

The --disable-web-security and --allow-file-access-from-files command-line switches
impair the browser security (especially the --disable-web-security key).


Be aware that you may open yourself to some vulnerabilities if using the same browser
for a regular web surfing. You may want to create a separate browser profile / shortcut

used just for local development to be safe.

 

 

Please use plain text.