Wednesday, April 15, 2009

Firefox 3.0.7 update breaks Aptana + how to fix

Okay so after much digging around I found that Aptana needs to run (Aptana team please fix this, just include the file in the next build please!!!).

Work around:

Well xulrunner (the new version) doesn't include file. So after much Googling I found that Thunderbird does. So I YUM install thunderbird and went to check if the file was there. (BTW: thunderbird version on CentOS 5). Yeah it's there.

So I have a script that looks for the file


# Set path for the Mozilla SWT binding
if false && [ -n "$MOZILLA_FIVE_HOME" -a -e $MOZILLA_FIVE_HOME/ ]; then
elif [ -e /usr/lib/mozilla/ ]; then
export MOZILLA_FIVE_HOME=/usr/lib/mozilla
elif [ -e /usr/lib/firefox/ ]; then
export MOZILLA_FIVE_HOME=/usr/lib/firefox
elif [ -e /usr/lib/xulrunner/ ]; then
export MOZILLA_FIVE_HOME=/usr/lib/xulrunner
elif [ -e /usr/lib/esc-1.0.0/xulrunner/ ]; then
export MOZILLA_FIVE_HOME=/usr/lib/esc-1.0.0/xulrunner
elif [ -e /usr/lib/mozilla-firefox/ ]; then
export MOZILLA_FIVE_HOME=/usr/lib/mozilla-firefox
elif [ -e /usr/lib/mozilla/ ]; then
export MOZILLA_FIVE_HOME=/usr/lib/mozilla
elif [ -e /usr/lib/thunderbird- ]; then
export MOZILLA_FIVE_HOME=/usr/lib/thunderbird-
--title="Integrated browser support not working" \
--text="This Eclipse build doesn't have support for the integrated browser."
[ $? -eq 0 ] || exit 1

# libraries from the mozilla choosen take precedence

# Do the actual launch of Aptana Studio
exec ./AptanaStudio

make it executable (chmod 755 scriptname) and run.


Just cjeck to make sure you have the right version of the program and/or that the path works.

[user@machine]# ls /usr/lib/thunderbird-

So if you have thunerbird please make the change in the script as well.

Hope this help ;-)

No comments: