Difference between revisions of "Eclipse"

From ArchWiki
Jump to: navigation, search
(Ctrl+X closes Eclipse)
m (Adding link to PTP plugin. It seems interesting to me to know that there is a plugin for parallel programming)
(34 intermediate revisions by 16 users not shown)
Line 5: Line 5:
 
[http://eclipse.org Eclipse] is an open source community project, which aims to provide a universal development platform. The Eclipse project is most widely known for its cross-platform integrated development environment (IDE). The Arch Linux packages (and this guide) relate specifically to the IDE.
 
[http://eclipse.org Eclipse] is an open source community project, which aims to provide a universal development platform. The Eclipse project is most widely known for its cross-platform integrated development environment (IDE). The Arch Linux packages (and this guide) relate specifically to the IDE.
  
The Eclipse IDE is largely written in Java but can be used to develop applications in a number of languages, including Java, C/C++, PHP, Perl and Python. The IDE can also provide subversion support (see below) and task management (either through its built-in TODO list or through the eclipse-mylyn package).
+
The Eclipse IDE is largely written in Java but can be used to develop applications in a number of languages, including Java, C/C++, PHP, Perl and Python. The IDE can also provide subversion support and task management.
  
 
== Installation ==
 
== Installation ==
  
It is very easy to install the Eclipse SDK in Arch Linux:
+
[[Pacman|Install]] the {{Pkg|eclipse}} package from the [[official repositories]].
# pacman -S eclipse
+
This base package has [[Java]] development support built in.
  
This base package has Java development support built in.
+
=== Eclipse for Java ===
 +
 
 +
The Eclipse IDE for Java Developers can be installed with the {{AUR|eclipse-java}} package from AUR.
  
 
== Plugins ==
 
== Plugins ==
There are two methods to install plugins for Eclipse:
 
*using [[pacman]] to install plugins packaged in Arch repositories (see [[Eclipse plugin package guidelines]] for further informations);
 
*using Eclipse's plugin manager to download and install plugins from their original repositories; in this case you have to find the needed repository in the plugin's website, then go to ''Help -> Install New Software...'', enter the repository in the ''Work with'' field, select the plugin to install from the list below and follow the instructions.
 
  
{{Warning|
+
Many plugins are easily installed using '''pacman''' (see [[Eclipse plugin package guidelines]] for further informations). This will also keep them up-to-date. Alternatively, you can choose either the [[#Eclipse Marketplace|Eclipse Marketplace]] or the internal [[#plugin manager|plugin manager]].
*If you install plugins with Eclipse's plugin manager, you are advised to launch Eclipse as root: this way the plugins will be installed in {{ic|/usr/share/eclipse/plugins/}}; if you installed them as normal user, they would be stored in a version-dependent folder inside {{ic|~/.eclipse/}}, and, after upgrading Eclipse, they wouldn't be recognized any longer.
+
*Do not use Eclipse as root for your everyday work.}}
+
  
=== C/C++ support ===
+
=== Add the default update site ===
  
==== Eclipse CDT ====
+
Make sure that you check that the default update site for your version of Eclipse is configured so that plugin dependencies can automatically be installed. The most current version of Eclipse is Kepler and the default update site for Kepler is: http://download.eclipse.org/releases/kepler. Go to Help > Install new Software > Add, fill the name to easily identify the update site later - for instance, Kepler Software Repository - and fill the location with the url.
*Project homepage: http://www.eclipse.org/cdt/
+
*Package in [extra]: {{Pkg|eclipse-cdt}}
+
  
=== Perl support ===
+
=== Eclipse Marketplace ===
  
====EPIC====
+
{{Note|make sure you've followed the [[#Add the default update site|Add the default update site]] section.}}
*Project homepage: http://www.epic-ide.org/
+
To use the Eclipse Marketplace, first you need to install it (hey, that feels familiar. I wonder why?). Go to Help > Install new software > switch to the default update site > General Purpose Tools > Marketplace Client. Restart Eclipse and it will be available in Help > Eclipse Marketplace.
*Package in [[AUR]]: {{AUR|eclipse-epic}}
+
  
=== [[PHP]] support ===
+
=== Plugin manager ===
  
==== Eclipse PDT ====
+
{{Note|make sure you've followed the [[#Add the default update site|Add the default update site]] section.}}
*Project homepage: http://www.eclipse.org/pdt/
+
Use Eclipse's plugin manager to download and install plugins from their original repositories: in this case you have to find the needed repository in the plugin's website, then go to ''Help > Install New Software...'', enter the repository in the ''Work with'' field, select the plugin to install from the list below and follow the instructions.
*Instructions for the Eclipse plugin version: http://wiki.eclipse.org/PDT/Installation
+
*Package in [[AUR]]: {{AUR|eclipse-pdt}}
+
  
==== PHPEclipse ====
+
{{Note|
*Project homepage: http://www.phpeclipse.com/
+
* If you install plugins with Eclipse's plugin manager, you are advised to launch Eclipse as root: this way the plugins will be installed in {{ic|/usr/share/eclipse/plugins/}}; if you installed them as normal user, they would be stored in a version-dependent folder inside {{ic|~/.eclipse/}}, and, after upgrading Eclipse, they wouldn't be recognized any longer.
*Package in [community]: {{Pkg|eclipse-phpeclipse}}
+
* Do not use Eclipse as root for your everyday work.
 +
}}
  
==== Aptana PHP ====
+
==== Updates via plugin manager ====
See Aptana Studio further down.
+
  
=== [[Python]] support ===
+
Run Eclipse and select ''Help > Check for Updates''. If you have installed them as root as advised in the section above, you have to run Eclipse as root.
  
==== PyDev ====
+
For plugins to be updated, you should check to have their update repositories enabled in ''Window > Preferences > Install/Update > Available Software Sites'': you can find each plugin's repository(es) on the respective project website. To add, edit, remove... repositories just use the buttons on the right of the ''Available Software Sites'' panel. For Eclipse 4.2 (Juno), check you have enabled this repository:
*Project homepage: http://pydev.org/
+
*Package in [[AUR]]: {{AUR|eclipse-pydev}}
+
  
=== Web development (HTML, CSS, JavaScript...) ===
+
http://download.eclipse.org/releases/juno
  
==== Aptana Studio ====
+
To receive update notifications, go to ''Window > Preferences > Install/Update > Automatic Updates''. If you want to receive notifications for plugins installed as root, you should run Eclipse as root, go to ''Window > Preferences > Install/Update > Available Software Sites'', select the repositories related to the installed plugins and ''Export'' them, then run Eclipse as normal user and ''Import'' them in the same panel.
*Project homepage: http://www.aptana.org/
+
*For the Eclipse plugin version, use Eclipse's plugin manager
+
*For the standalone version, there is a package in [[AUR]]: {{AUR|aptana-studio}}
+
  
=== [[Subversion]] support ===
+
=== List of plugins ===
  
==== Subclipse ====
+
* {{App|AVR|AVR microcontroller plugin.|http://avr-eclipse.sourceforge.net/wiki/index.php/The_AVR_Eclipse_Plugin|{{AUR|eclipse-avr}}}}
*Project homepage: http://subclipse.tigris.org/
+
* {{App|Aptana|HTML5/CSS3/JavaScript/Ruby/Rails/PHP/Pydev/Django support. Also available as standalone application.|http://www.aptana.com/|{{AUR|eclipse-aptana}} {{AUR|aptana-studio}}}}
*Package in [[AUR]]: {{AUR|eclipse-subclipse}}
+
* {{App|Eclipse CDT|C/C++ support.|http://www.eclipse.org/cdt/|{{Pkg|eclipse-cdt}}}}
*[http://www-128.ibm.com/developerworks/opensource/library/os-ecl-subversion/ How to use Subversion with Eclipse]
+
* {{App|Eclipse PDT|[[PHP]] support.|http://www.eclipse.org/pdt/|{{AUR|eclipse-pdt}}}}
 +
* {{App|EGit|[[Git]] support.|http://www.eclipse.org/egit|{{AUR|eclipse-egit}}}}
 +
* {{App|EPIC|Perl support.|http://www.epic-ide.org/|{{AUR|eclipse-epic}}}}
 +
* {{App|IvyDE|IvyDE dependency Manager.|https://ant.apache.org/ivy/ivyde/|{{AUR|eclipse-ivyde}}}}
 +
* {{App|Markdown|Markdown editor plugin for Eclipse.|https://ant.apache.org/ivy/ivyde/|{{AUR|eclipse-markdown}}}}
 +
* {{App|MercurialEclipse|[[Mercurial]] support.|http://www.winterwell.com/software/markdown-editor.php|{{AUR|eclipse-mercurial}}}}
 +
* {{App|Mylyn|Task lists support.|http://www.eclipse.org/mylyn/|{{AUR|eclipse-mylyn}}}}
 +
* {{App|PHPEclipse|Alternative PHP support.|http://www.phpeclipse.com/|{{AUR|eclipse-phpeclipse}}}}
 +
* {{App|PyDev|[[Python]] support.|http://pydev.org/|{{AUR|eclipse-pydev}}}}
 +
* {{App|Subclipse|[[Subversion]] support.|http://subclipse.tigris.org/|{{AUR|eclipse-subclipse}}}}
 +
* {{App|Subversive|Alternative Subversion support.|http://www.eclipse.org/subversive/|{{AUR|eclipse-subversive}}}}
 +
* {{App|TestNG|TestNG support.|http://testng.org/doc/eclipse.html|{{AUR|eclipse-testng}}}}
 +
* {{App|TeXlipse|[[LaTeX]] support.|http://texlipse.sourceforge.net/|{{AUR|texlipse}}}}
 +
* {{App|Eclipse PTP|Parallel Programming C/C++ support.|http://www.eclipse.org/ptp/|{{AUR|eclipse-ptp}}}}
  
==== Eclipse Subversive ====
+
== Enable javadoc integration ==
*Project homepage: http://www.eclipse.org/subversive/
+
*Package in [[AUR]]: {{AUR|eclipse-subversive}}
+
  
=== [[Git]] support ===
+
Want to see API entries when hovering the mouse pointer over standard Java methods?
  
==== EGit ====
+
=== Online version ===
*Project homepage: http://www.eclipse.org/egit
+
*Eclipse Update Link: http://download.eclipse.org/egit/updates
+
*Package in [[AUR]]: {{AUR|eclipse-egit}}
+
  
=== [[Mercurial]] support ===
+
If you have constant Internet access on your machine, you can use the on-line documentation:
  
==== MercurialEclipse ====
+
# Go to ''Window > Preferences'', then go to ''Java > Installed JREs''.
*Project homepage: http://code.google.com/a/eclipselabs.org/p/mercurialeclipse/
+
# There should be one named "java" with the type "Standard VM". Select this and click ''Edit''.
*Eclipse Update Link: http://mercurialeclipse.eclipselabs.org.codespot.com/hg.wiki/update_site/stable
+
# Select the {{ic|/opt/java/jre/lib/rt.jar}} item under "JRE system libraries:", then click ''Javadoc Location...''.
*Package in [[AUR]]: {{AUR|eclipse-mercurial}}
+
# Enter "http://docs.oracle.com/javase/7/docs/api/" in the "Javadoc location path:" text field.
  
===[[LaTeX]] support ===
+
=== Offline version ===
  
==== TeXlipse ====
+
You can store the documentation locally by installing the {{Pkg|openjdk7-doc}} package.  Eclipse may be able to find the javadocs automatically.  If that doesn't work, set Javadoc location for rt.jar to {{ic|file:/usr/share/doc/openjdk7-doc/api}}.
*Project homepage: http://texlipse.sourceforge.net/
+
*Eclipse Update Link: http://texlipse.sourceforge.net
+
  
==Updates==
+
== Troubleshooting ==
*Eclipse and the plugins installed with pacman are obviously updated with pacman itself.
+
*For plugins installed with Eclipse's plugin manager, run Eclipse and select ''Help -> Check for Updates'' (if you have installed them as root as advised in the section above, you have to run Eclipse as root).
+
  
For plugins to be updated, you should check to have their update repositories enabled in ''Window -> Preferences -> Install/Update -> Available Software Sites'': you can find each plugin's repository(es) on the respective project website. To add, edit, remove... repositories just use the buttons on the right of the ''Available Software Sites'' panel. For Eclipse 3.7 (Indigo), check you have enabled this repository:
+
=== Autocompletion and javadoc render crash ===
  
http://download.eclipse.org/releases/indigo
+
For some reason, libxul may crash Eclipse with a traceback like:
  
To receive update notifications, go to ''Window -> Preferences -> Install/Update -> Automatic Updates''. If you want to receive notifications for plugins installed as root, you should run Eclipse as root, go to ''Window -> Preferences -> Install/Update -> Available Software Sites'', select the repositories related to the installed plugins and ''Export'' them; then run Eclipse as normal user and ''Import'' them in the same panel.
+
# Problematic frame:
 +
# C  [libxul.so+0xd07552]  NS_InvokeByIndex_P+0x5e9a
  
== Using Sun JDK in place of OpenJDK ==
+
To fix this issue, you can try installing {{Pkg|libwebkit}} and adding the following lines in your {{ic|/usr/share/eclipse/eclipse.ini}}:
{{Accuracy}}
+
Eclipse depends on openjdk6 by default, which you can easily replace with jdk, following [[Java|this article]].
+
  
By the way, you may want to link the file /opt/java/bin/java to /usr/bin/java:
+
  -Dorg.eclipse.swt.browser.UseWebKitGTK=true
  # ln -s /opt/java/bin/java /usr/bin
+
  
== Enable javadoc integration ==
+
If that does not work (or if you do not want to use libwebkit) download:
Want to see API entries when hovering the mouse pointer over standard Java methods?
+
http://ftp.mozilla.org/pub/mozilla.org/xulrunner/releases/1.9.0.17/runtimes/xulrunner-1.9.0.17.en-US.linux-i686.tar.bz2
 +
Unpack it into {{ic|~/.local/xulrunner}} (or another location) and add this line to your Eclipse configuration file {{ic|/usr/share/eclipse/eclipse.ini}}:
  
=== Online Version ===
+
-Dorg.eclipse.swt.browser.XULRunnerPath=/home/<Username>/.local/xulrunner
  
If you have constant internet access on your machine, you can use the on-line documentation provided by sun. Just follow these instructions:
+
Now everything should just work fine and tooltips should display correctly. To prevent overwriting this configuration on update, append {{ic|/usr/share/eclipse/eclipse.ini}} to the {{ic|NoUpgrade}} line in {{ic|/etc/pacman.conf}} as follows:
 +
{{hc|/etc/pacman.conf|
 +
NoUpgrade &#61; usr/share/eclipse/eclipse.ini
 +
}}
  
# Go to Window/Preferences, then go to Java/Installed JREs.
+
=== Crash on first boot or when choosing ''Help > Welcome'' ===
# There should be one named "java" with the type "Standard VM". Select this and click Edit.
+
# Select the {{ic|/opt/java/jre/lib/rt.jar}} item under "JRE system libraries:", then click "Javadoc Location...".
+
# Enter "http://java.sun.com/javase/6/docs/api/" in the "Javadoc location path:" text field.
+
# Done!
+
  
=== Offline Version ===
+
See [[#Autocompletion and javadoc render crash]].
  
If you have no internet connection on your development machine or do not want to constantly consume bandwidth for the documentation, you can store the documentation locally, by installing the {{ic|openjdk[version]-src}} package. Eclipse should find the javadocs automatically.
+
=== Ctrl+X closes Eclipse ===
  
== Troubleshooting ==
+
Part of [https://bugs.eclipse.org/bugs/show_bug.cgi?id=318177 this] bug. Just look in {{ic|~/workspace/.metadata/.plugins/org.eclipse.e4.workbench/workbench.xmi}} and delete the wrong {{ic|Ctrl+X}} combination. Usually it is the first one.
  
=== Autocompletion and javadoc render crash ===
+
=== Eclipse 4.2.0 not respecting dark/custom gtk themes resulting in white background ===
For some reason, libxul may crash Eclipse with a Traceback like
+
  
# Problematic frame:
+
Remove or move to backup sub folder all of the .css files from:
# C  [libxul.so+0xd07552]  NS_InvokeByIndex_P+0x5e9a
+
/usr/share/eclipse/plugins/org.eclipse.platform_4.2.0.v201206081400/css/
  
To fix this issue, you can try installing {{Pkg|libwebkit}} and adding the following lines in your {{ic|/usr/share/eclipse/eclipse.ini}}:
+
Solution source: http://www.eclipse.org/forums/index.php/m/872214/
  
-Dorg.eclipse.swt.browser.UseWebKitGTK=true
+
This also works with version 4.3.x (Kepler) by backing up the css folder from /usr/share/eclipse/plugins/org.eclipse.platform_4.3.xxx/css/
  
If that does not work (or if you do not want to use libwebkit) try this:
+
=== Tooltips have dark background color with Gnome 3.6 Adwaita theme ===
  
:1. Download http://ftp.mozilla.org/pub/mozilla.org/xulrunner/releases/1.9.0.17/runtimes/xulrunner-1.9.0.17.en-US.linux-i686.tar.bz2
+
Comment out the second-to-last line in {{ic|/usr/share/themes/Adwaita/gtk-2.0/gtkrc}} like this
:2. Unpack it into /home/<Username>/.xulrunner (or another location)
+
:3. Add this line to your Eclipse configuration file {{ic|/usr/share/eclipse/eclipse.ini}}:
+
  
  -Dorg.eclipse.swt.browser.XULRunnerPath=/home/<Username>/.xulrunner
+
  #widget "gtk-tooltip*"  style "tooltips"
  
:Now everything should just work fine and tooltips should display correctly.
+
Related bugs:  
  
=== Crash on first boot or when choosing "Help->Welcome" ===
+
* https://bugzilla.gnome.org/show_bug.cgi?id=688285
See above.
+
* https://bugs.eclipse.org/bugs/show_bug.cgi?id=381010 (WONTFIX)
  
=== Ctrl+X closes Eclipse ===
+
=== Toggle buttons states are the same for selected/not selected ===
Part of [https://bugs.eclipse.org/bugs/show_bug.cgi?id=318177 this] bug. Just look in {{ic|~/workspace/.metadata/.plugins/org.eclipse.e4.workbench/workbench.xmi}} and delete wrong Ctrl+X combination. The first one usually is wrong.
+
 
 +
Comment out the last line in {{ic|/usr/share/themes/Adwaita/gtk-2.0/gtkrc}} like this
 +
 
 +
#widget "*swt*toolbar*" style "null"
 +
 
 +
To apply the fixed theme, use {{ic|gnome-tweak-tool}} to select a different theme and cycle back to Adwaita.
 +
 
 +
Related bugs:
 +
 
 +
* https://bugzilla.gnome.org/show_bug.cgi?id=687519
 +
 
 +
== See also ==
 +
 
 +
* [http://www-128.ibm.com/developerworks/opensource/library/os-ecl-subversion/ How to use Subversion with Eclipse]

Revision as of 19:41, 1 October 2013

Eclipse is an open source community project, which aims to provide a universal development platform. The Eclipse project is most widely known for its cross-platform integrated development environment (IDE). The Arch Linux packages (and this guide) relate specifically to the IDE.

The Eclipse IDE is largely written in Java but can be used to develop applications in a number of languages, including Java, C/C++, PHP, Perl and Python. The IDE can also provide subversion support and task management.

Installation

Install the eclipse package from the official repositories. This base package has Java development support built in.

Eclipse for Java

The Eclipse IDE for Java Developers can be installed with the eclipse-javaAUR package from AUR.

Plugins

Many plugins are easily installed using pacman (see Eclipse plugin package guidelines for further informations). This will also keep them up-to-date. Alternatively, you can choose either the Eclipse Marketplace or the internal plugin manager.

Add the default update site

Make sure that you check that the default update site for your version of Eclipse is configured so that plugin dependencies can automatically be installed. The most current version of Eclipse is Kepler and the default update site for Kepler is: http://download.eclipse.org/releases/kepler. Go to Help > Install new Software > Add, fill the name to easily identify the update site later - for instance, Kepler Software Repository - and fill the location with the url.

Eclipse Marketplace

Note: make sure you've followed the Add the default update site section.

To use the Eclipse Marketplace, first you need to install it (hey, that feels familiar. I wonder why?). Go to Help > Install new software > switch to the default update site > General Purpose Tools > Marketplace Client. Restart Eclipse and it will be available in Help > Eclipse Marketplace.

Plugin manager

Note: make sure you've followed the Add the default update site section.

Use Eclipse's plugin manager to download and install plugins from their original repositories: in this case you have to find the needed repository in the plugin's website, then go to Help > Install New Software..., enter the repository in the Work with field, select the plugin to install from the list below and follow the instructions.

Note:
  • If you install plugins with Eclipse's plugin manager, you are advised to launch Eclipse as root: this way the plugins will be installed in /usr/share/eclipse/plugins/; if you installed them as normal user, they would be stored in a version-dependent folder inside ~/.eclipse/, and, after upgrading Eclipse, they wouldn't be recognized any longer.
  • Do not use Eclipse as root for your everyday work.

Updates via plugin manager

Run Eclipse and select Help > Check for Updates. If you have installed them as root as advised in the section above, you have to run Eclipse as root.

For plugins to be updated, you should check to have their update repositories enabled in Window > Preferences > Install/Update > Available Software Sites: you can find each plugin's repository(es) on the respective project website. To add, edit, remove... repositories just use the buttons on the right of the Available Software Sites panel. For Eclipse 4.2 (Juno), check you have enabled this repository:

http://download.eclipse.org/releases/juno

To receive update notifications, go to Window > Preferences > Install/Update > Automatic Updates. If you want to receive notifications for plugins installed as root, you should run Eclipse as root, go to Window > Preferences > Install/Update > Available Software Sites, select the repositories related to the installed plugins and Export them, then run Eclipse as normal user and Import them in the same panel.

List of plugins

  • AVR — AVR microcontroller plugin.
http://avr-eclipse.sourceforge.net/wiki/index.php/The_AVR_Eclipse_Plugin || eclipse-avrAUR
  • Aptana — HTML5/CSS3/JavaScript/Ruby/Rails/PHP/Pydev/Django support. Also available as standalone application.
http://www.aptana.com/ || eclipse-aptanaAUR aptana-studioAUR
  • Eclipse CDT — C/C++ support.
http://www.eclipse.org/cdt/ || eclipse-cdt
  • Eclipse PDTPHP support.
http://www.eclipse.org/pdt/ || eclipse-pdtAUR
  • EGitGit support.
http://www.eclipse.org/egit || eclipse-egitAUR
  • EPIC — Perl support.
http://www.epic-ide.org/ || eclipse-epicAUR
  • IvyDE — IvyDE dependency Manager.
https://ant.apache.org/ivy/ivyde/ || eclipse-ivydeAUR
  • Markdown — Markdown editor plugin for Eclipse.
https://ant.apache.org/ivy/ivyde/ || eclipse-markdownAUR
http://www.winterwell.com/software/markdown-editor.php || eclipse-mercurialAUR
  • Mylyn — Task lists support.
http://www.eclipse.org/mylyn/ || eclipse-mylynAUR
  • PHPEclipse — Alternative PHP support.
http://www.phpeclipse.com/ || eclipse-phpeclipseAUR
http://pydev.org/ || eclipse-pydevAUR
http://subclipse.tigris.org/ || eclipse-subclipseAUR
  • Subversive — Alternative Subversion support.
http://www.eclipse.org/subversive/ || eclipse-subversiveAUR
  • TestNG — TestNG support.
http://testng.org/doc/eclipse.html || eclipse-testngAUR
  • TeXlipseLaTeX support.
http://texlipse.sourceforge.net/ || texlipseAUR
  • Eclipse PTP — Parallel Programming C/C++ support.
http://www.eclipse.org/ptp/ || eclipse-ptpAUR

Enable javadoc integration

Want to see API entries when hovering the mouse pointer over standard Java methods?

Online version

If you have constant Internet access on your machine, you can use the on-line documentation:

  1. Go to Window > Preferences, then go to Java > Installed JREs.
  2. There should be one named "java" with the type "Standard VM". Select this and click Edit.
  3. Select the /opt/java/jre/lib/rt.jar item under "JRE system libraries:", then click Javadoc Location....
  4. Enter "http://docs.oracle.com/javase/7/docs/api/" in the "Javadoc location path:" text field.

Offline version

You can store the documentation locally by installing the openjdk7-doc package. Eclipse may be able to find the javadocs automatically. If that doesn't work, set Javadoc location for rt.jar to file:/usr/share/doc/openjdk7-doc/api.

Troubleshooting

Autocompletion and javadoc render crash

For some reason, libxul may crash Eclipse with a traceback like:

# Problematic frame:
# C  [libxul.so+0xd07552]  NS_InvokeByIndex_P+0x5e9a

To fix this issue, you can try installing libwebkit and adding the following lines in your /usr/share/eclipse/eclipse.ini:

-Dorg.eclipse.swt.browser.UseWebKitGTK=true

If that does not work (or if you do not want to use libwebkit) download:

http://ftp.mozilla.org/pub/mozilla.org/xulrunner/releases/1.9.0.17/runtimes/xulrunner-1.9.0.17.en-US.linux-i686.tar.bz2

Unpack it into ~/.local/xulrunner (or another location) and add this line to your Eclipse configuration file /usr/share/eclipse/eclipse.ini:

-Dorg.eclipse.swt.browser.XULRunnerPath=/home/<Username>/.local/xulrunner

Now everything should just work fine and tooltips should display correctly. To prevent overwriting this configuration on update, append /usr/share/eclipse/eclipse.ini to the NoUpgrade line in /etc/pacman.conf as follows:

/etc/pacman.conf
NoUpgrade = usr/share/eclipse/eclipse.ini

Crash on first boot or when choosing Help > Welcome

See #Autocompletion and javadoc render crash.

Ctrl+X closes Eclipse

Part of this bug. Just look in ~/workspace/.metadata/.plugins/org.eclipse.e4.workbench/workbench.xmi and delete the wrong Ctrl+X combination. Usually it is the first one.

Eclipse 4.2.0 not respecting dark/custom gtk themes resulting in white background

Remove or move to backup sub folder all of the .css files from: /usr/share/eclipse/plugins/org.eclipse.platform_4.2.0.v201206081400/css/

Solution source: http://www.eclipse.org/forums/index.php/m/872214/

This also works with version 4.3.x (Kepler) by backing up the css folder from /usr/share/eclipse/plugins/org.eclipse.platform_4.3.xxx/css/

Tooltips have dark background color with Gnome 3.6 Adwaita theme

Comment out the second-to-last line in /usr/share/themes/Adwaita/gtk-2.0/gtkrc like this

#widget "gtk-tooltip*"  style "tooltips"

Related bugs:

Toggle buttons states are the same for selected/not selected

Comment out the last line in /usr/share/themes/Adwaita/gtk-2.0/gtkrc like this

#widget "*swt*toolbar*" style "null"

To apply the fixed theme, use gnome-tweak-tool to select a different theme and cycle back to Adwaita.

Related bugs:

See also