tags:

views:

1777

answers:

5

I downloaded the Aptana_Studio_Setup_Linux.zip package, unpacked it and run ./AptanaStudio. It starts fine, but reports one problem:

The embedded browser widget for this editor cannot be created. It is either not available for your operating system or the system needs to be configured in order to support embedded browser.

After that, it opens the "Welcome page" in external browser (Mozilla), but when I click on a link to install PHP support it does not open the destination target. No wonder, because the link is in format: com.aptana....etc. I.e. written in reverse. I assume such links only work with internal browser.

If I look into details, I get these error messages:

No more handles [Unknown Mozilla path (MOZILLA_FIVE_HOME not set)]
org.eclipse.swt.SWTError: No more handles [Unknown Mozilla path (MOZILLA_FIVE_HOME not set)]
at org.eclipse.swt.SWT.error(SWT.java:3400)
at org.eclipse.swt.browser.Browser.<init>(Browser.java:138)
at org.eclipse.ui.internal.browser.BrowserViewer.<init>(BrowserViewer.java:224)
at org.eclipse.ui.internal.browser.WebBrowserEditor.createPartControl(WebBrowserEditor.java:78)
at com.aptana.ide.intro.browser.CoreBrowserEditor.createPartControl(CoreBrowserEditor.java:138)
at org.eclipse.ui.internal.EditorReference.createPartHelper(EditorReference.java:596)
at org.eclipse.ui.internal.EditorReference.createPart(EditorReference.java:372)
at org.eclipse.ui.internal.WorkbenchPartReference.getPart(WorkbenchPartReference.java:566)
at org.eclipse.ui.internal.PartPane.setVisible(PartPane.java:290)

etc. I hope this is enough.

I tried to set the env. variable:

export MOZILLA_FIVE_HOME=/usr/lib/mozilla/

However, it only changes the error message to:

No more handles [NS_InitEmbedding /usr/lib/mozilla/ error -2147221164]
org.eclipse.swt.SWTError: No more handles [NS_InitEmbedding /usr/lib/mozilla/ error -2147221164]
at org.eclipse.swt.SWT.error(SWT.java:3400)
at org.eclipse.swt.browser.Browser.<init>(Browser.java:225)
at org.eclipse.ui.internal.browser.BrowserViewer.<init>(BrowserViewer.java:224)
at org.eclipse.ui.internal.browser.WebBrowserEditor.createPartControl(WebBrowserEditor.java:78)
at com.aptana.ide.intro.browser.CoreBrowserEditor.createPartControl(CoreBrowserEditor.java:138)
at org.eclipse.ui.internal.EditorReference.createPartHelper(EditorReference.java:596)
at org.eclipse.ui.internal.EditorReference.createPart(EditorReference.java:372)

For start I really want to have PHP working, but I'd also like to fix the whole internal browser issue in the end.

A: 

If this is the problem I think you're having, just installing Firefox 2 (alongside FF3) should fix the issue. It happens because Aptana can only use FF2 at the moment. Hopefully they'll fix this soon.

If you're on Ubuntu, it's really just a case of:

sudo apt-get install firefox-2

Naturally, the process will vary on different distributions.

Oli
I already have Firefox 2 installed, it's the default browser in Slackware 12.1.
Milan Babuškov
+3  A: 

Here is the solution: http://aptana.com/docs/index.php/Installing_Aptana_on_Linux#Generic_Installation_Instructions

I'm sorry but instructions on that URL do not show how to install XUL runner (which is essential part of the problem). They say "you can install it with synaptic", but the Linux distro I'm using does not have Synaptic
Milan Babuškov
A: 

You need to download and install XULRunner from mozilla.org, and point MOZILLA_FIVE_HOME to that directory.

Alterlife
Tried, and apparently it didn't work. What should be the EXACT steps to do that?
Milan Babuškov
+1  A: 

After installing xulrunner you need to set this:

MOZILLA_FIVE_HOME=/usr/lib/xulrunner
kthakore
A: 

Edit: getting internal browser to work is NOT required in order to get PHP support in Aptana. Just install PHP support from Help, Software updates menu.

Milan Babuškov