Michael Galaxy
Michael Galaxy

Reputation: 1283

worklight embedded browser not working

I have worklight up and running with the "hello world" example running in a Linux environment using instructions from here: http://www.ibm.com/developerworks/mobile/worklight/getting-started.html

But, I can't see the application design because worklight can't load the embedded browser:

screenshot of worklight embedded browser error

Clicking 'additional information' took me to another useless screen:

404 error upon clicking 'additional information'

So, then I pointed to an external browser (chrome in my case), but still no result:

failed external browser

Then attempting to use the worklight 'console', yields this:

nothing in the console

How do I fix this?

Upvotes: 0

Views: 254

Answers (3)

Orlando Rincón
Orlando Rincón

Reputation: 547

This is what you need. You need to manually force a xulrunner version to use.

Upvotes: 1

Michael Galaxy
Michael Galaxy

Reputation: 1283

The answer has nothing to do with worklight: Eclipse doesn't just "dump" your external browser into an eclipse window.

It uses the webkit libraries to construct a browser frame inside eclipse so that you can interact with it.

For Linux users, you need to make sure the webkit libraries are installed correctly in Linux before Eclipse can discover and use them properly. Heres some instructions:

For me, this was as simple as

sudo apt-get install libwebkit-1.0-0

Followed by restarting Eclipse.

Upvotes: 0

Idan Adar
Idan Adar

Reputation: 44516

By "embedded browser" I'm guessing it is trying to open a browser window inside Eclipse...

You can go to Eclipse preferences and search for "web browser". There, change the default browser to your preferred external browser.

Next, or in addition, you can just right-click on the Worklight project and select "Open Worklight console". From there you can click on the "preview common resources" or the environment icon (if you added any) and preview.

Upvotes: 0

Related Questions