https://wiki.archlinux.org/api.php?action=feedcontributions&user=Ethail&feedformat=atomArchWiki - User contributions [en]2024-03-28T08:51:47ZUser contributionsMediaWiki 1.41.0https://wiki.archlinux.org/index.php?title=Eclipse&diff=277258Eclipse2013-10-01T19:41:20Z<p>Ethail: Adding link to PTP plugin. It seems interesting to me to know that there is a plugin for parallel programming</p>
<hr />
<div>[[Category:Development]]<br />
[[it:Eclipse]]<br />
[[ru:Eclipse]]<br />
[[zh-CN:Eclipse]]<br />
[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.<br />
<br />
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.<br />
<br />
== Installation ==<br />
<br />
[[Pacman|Install]] the {{Pkg|eclipse}} package from the [[official repositories]].<br />
This base package has [[Java]] development support built in.<br />
<br />
=== Eclipse for Java ===<br />
<br />
The Eclipse IDE for Java Developers can be installed with the {{AUR|eclipse-java}} package from AUR.<br />
<br />
== Plugins ==<br />
<br />
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]].<br />
<br />
=== Add the default update site ===<br />
<br />
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.<br />
<br />
=== Eclipse Marketplace ===<br />
<br />
{{Note|make sure you've followed the [[#Add the default update site|Add the default update site]] section.}}<br />
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.<br />
<br />
=== Plugin manager ===<br />
<br />
{{Note|make sure you've followed the [[#Add the default update site|Add the default update site]] section.}}<br />
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.<br />
<br />
{{Note|<br />
* 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.<br />
* Do not use Eclipse as root for your everyday work.<br />
}}<br />
<br />
==== Updates via plugin manager ====<br />
<br />
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.<br />
<br />
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:<br />
<br />
http://download.eclipse.org/releases/juno<br />
<br />
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.<br />
<br />
=== List of plugins ===<br />
<br />
* {{App|AVR|AVR microcontroller plugin.|http://avr-eclipse.sourceforge.net/wiki/index.php/The_AVR_Eclipse_Plugin|{{AUR|eclipse-avr}}}}<br />
* {{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}}}}<br />
* {{App|Eclipse CDT|C/C++ support.|http://www.eclipse.org/cdt/|{{Pkg|eclipse-cdt}}}}<br />
* {{App|Eclipse PDT|[[PHP]] support.|http://www.eclipse.org/pdt/|{{AUR|eclipse-pdt}}}}<br />
* {{App|EGit|[[Git]] support.|http://www.eclipse.org/egit|{{AUR|eclipse-egit}}}}<br />
* {{App|EPIC|Perl support.|http://www.epic-ide.org/|{{AUR|eclipse-epic}}}}<br />
* {{App|IvyDE|IvyDE dependency Manager.|https://ant.apache.org/ivy/ivyde/|{{AUR|eclipse-ivyde}}}}<br />
* {{App|Markdown|Markdown editor plugin for Eclipse.|https://ant.apache.org/ivy/ivyde/|{{AUR|eclipse-markdown}}}}<br />
* {{App|MercurialEclipse|[[Mercurial]] support.|http://www.winterwell.com/software/markdown-editor.php|{{AUR|eclipse-mercurial}}}}<br />
* {{App|Mylyn|Task lists support.|http://www.eclipse.org/mylyn/|{{AUR|eclipse-mylyn}}}}<br />
* {{App|PHPEclipse|Alternative PHP support.|http://www.phpeclipse.com/|{{AUR|eclipse-phpeclipse}}}}<br />
* {{App|PyDev|[[Python]] support.|http://pydev.org/|{{AUR|eclipse-pydev}}}}<br />
* {{App|Subclipse|[[Subversion]] support.|http://subclipse.tigris.org/|{{AUR|eclipse-subclipse}}}}<br />
* {{App|Subversive|Alternative Subversion support.|http://www.eclipse.org/subversive/|{{AUR|eclipse-subversive}}}}<br />
* {{App|TestNG|TestNG support.|http://testng.org/doc/eclipse.html|{{AUR|eclipse-testng}}}}<br />
* {{App|TeXlipse|[[LaTeX]] support.|http://texlipse.sourceforge.net/|{{AUR|texlipse}}}}<br />
* {{App|Eclipse PTP|Parallel Programming C/C++ support.|http://www.eclipse.org/ptp/|{{AUR|eclipse-ptp}}}}<br />
<br />
== Enable javadoc integration ==<br />
<br />
Want to see API entries when hovering the mouse pointer over standard Java methods?<br />
<br />
=== Online version ===<br />
<br />
If you have constant Internet access on your machine, you can use the on-line documentation:<br />
<br />
# Go to ''Window > Preferences'', then go to ''Java > Installed JREs''.<br />
# There should be one named "java" with the type "Standard VM". Select this and click ''Edit''.<br />
# Select the {{ic|/opt/java/jre/lib/rt.jar}} item under "JRE system libraries:", then click ''Javadoc Location...''.<br />
# Enter "http://docs.oracle.com/javase/7/docs/api/" in the "Javadoc location path:" text field.<br />
<br />
=== Offline version ===<br />
<br />
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}}.<br />
<br />
== Troubleshooting ==<br />
<br />
=== Autocompletion and javadoc render crash ===<br />
<br />
For some reason, libxul may crash Eclipse with a traceback like:<br />
<br />
# Problematic frame:<br />
# C [libxul.so+0xd07552] NS_InvokeByIndex_P+0x5e9a<br />
<br />
To fix this issue, you can try installing {{Pkg|libwebkit}} and adding the following lines in your {{ic|/usr/share/eclipse/eclipse.ini}}: <br />
<br />
-Dorg.eclipse.swt.browser.UseWebKitGTK=true<br />
<br />
If that does not work (or if you do not want to use libwebkit) download:<br />
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<br />
Unpack it into {{ic|~/.local/xulrunner}} (or another location) and add this line to your Eclipse configuration file {{ic|/usr/share/eclipse/eclipse.ini}}:<br />
<br />
-Dorg.eclipse.swt.browser.XULRunnerPath=/home/<Username>/.local/xulrunner<br />
<br />
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:<br />
{{hc|/etc/pacman.conf|<br />
NoUpgrade &#61; usr/share/eclipse/eclipse.ini<br />
}}<br />
<br />
=== Crash on first boot or when choosing ''Help > Welcome'' ===<br />
<br />
See [[#Autocompletion and javadoc render crash]].<br />
<br />
=== Ctrl+X closes Eclipse ===<br />
<br />
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.<br />
<br />
=== Eclipse 4.2.0 not respecting dark/custom gtk themes resulting in white background ===<br />
<br />
Remove or move to backup sub folder all of the .css files from:<br />
/usr/share/eclipse/plugins/org.eclipse.platform_4.2.0.v201206081400/css/<br />
<br />
Solution source: http://www.eclipse.org/forums/index.php/m/872214/<br />
<br />
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/<br />
<br />
=== Tooltips have dark background color with Gnome 3.6 Adwaita theme ===<br />
<br />
Comment out the second-to-last line in {{ic|/usr/share/themes/Adwaita/gtk-2.0/gtkrc}} like this<br />
<br />
#widget "gtk-tooltip*" style "tooltips"<br />
<br />
Related bugs: <br />
<br />
* https://bugzilla.gnome.org/show_bug.cgi?id=688285 <br />
* https://bugs.eclipse.org/bugs/show_bug.cgi?id=381010 (WONTFIX)<br />
<br />
=== Toggle buttons states are the same for selected/not selected ===<br />
<br />
Comment out the last line in {{ic|/usr/share/themes/Adwaita/gtk-2.0/gtkrc}} like this<br />
<br />
#widget "*swt*toolbar*" style "null"<br />
<br />
To apply the fixed theme, use {{ic|gnome-tweak-tool}} to select a different theme and cycle back to Adwaita.<br />
<br />
Related bugs: <br />
<br />
* https://bugzilla.gnome.org/show_bug.cgi?id=687519<br />
<br />
== See also ==<br />
<br />
* [http://www-128.ibm.com/developerworks/opensource/library/os-ecl-subversion/ How to use Subversion with Eclipse]</div>Ethailhttps://wiki.archlinux.org/index.php?title=Eclipse&diff=172473Eclipse2011-12-06T11:23:02Z<p>Ethail: egit is in the aur as "eclipse-egit", not as egit as the wiki page shows</p>
<hr />
<div>[[Category:Development (English)]]<br />
{{i18n|Eclipse}}<br />
[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.<br />
<br />
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 and Perl. 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).<br />
<br />
== Installation ==<br />
<br />
It is very easy to install the Eclipse SDK in Arch Linux:<br />
# pacman -S eclipse<br />
<br />
This base package has Java development support built in.<br />
<br />
== Plugins ==<br />
There are two methods to install plugins for Eclipse:<br />
*using [[pacman]] to install plugins packaged in Arch repositories (see [[Eclipse plugin package guidelines]] for further informations);<br />
*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.<br />
<br />
{{Warning|<br />
*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 {{Filename|/usr/share/eclipse/plugins/}}; if you installed them as normal user, they would be stored in a version-dependent folder inside {{Filename|~/.eclipse/}}, and, after upgrading Eclipse, they wouldn't be recognized any longer.<br />
*Do not use Eclipse as root for your everyday work.}}<br />
<br />
=== C/C++ support ===<br />
<br />
==== Eclipse CDT ====<br />
*Project homepage: http://www.eclipse.org/cdt/<br />
*Package in [extra]: {{Package Official|eclipse-cdt}}<br />
<br />
=== Perl support ===<br />
<br />
====EPIC====<br />
*Project homepage: http://www.epic-ide.org/<br />
*Package in [[AUR]]: {{Package AUR|eclipse-epic}}<br />
<br />
=== [[PHP]] support ===<br />
<br />
==== Eclipse PDT ====<br />
*Project homepage: http://www.eclipse.org/pdt/<br />
*Instructions for the Eclipse plugin version: http://wiki.eclipse.org/PDT/Installation<br />
*Package in [[AUR]]: {{Package AUR|eclipse-pdt}}<br />
<br />
==== PHPEclipse ====<br />
*Project homepage: http://www.phpeclipse.com/<br />
*Package in [community]: {{Package Official|eclipse-phpeclipse}}<br />
<br />
==== Aptana PHP ====<br />
See Aptana Studio further down.<br />
<br />
=== [[Python]] support ===<br />
<br />
==== PyDev ====<br />
*Project homepage: http://pydev.org/<br />
*Package in [[AUR]]: {{Package AUR|eclipse-pydev}}<br />
<br />
=== Web development (HTML, CSS, JavaScript...) ===<br />
<br />
==== Aptana Studio ====<br />
*Project homepage: http://www.aptana.org/<br />
*For the Eclipse plugin version, use Eclipse's plugin manager<br />
*For the standalone version, there is a package in [[AUR]]: {{Package AUR|aptana-studio}}<br />
<br />
=== [[Subversion]] support ===<br />
<br />
==== Subclipse ====<br />
*Project homepage: http://subclipse.tigris.org/<br />
*Package in [community]: {{Package Official|eclipse-subclipse}}<br />
*[http://www-128.ibm.com/developerworks/opensource/library/os-ecl-subversion/ How to use Subversion with Eclipse]<br />
<br />
==== Eclipse Subversive ====<br />
*Project homepage: http://www.eclipse.org/subversive/<br />
*Package in [[AUR]]: {{Package AUR|eclipse-subversive}}<br />
<br />
=== [[Git]] support ===<br />
<br />
==== EGit ====<br />
*Project homepage: http://www.eclipse.org/egit<br />
*Eclipse Update Link: http://download.eclipse.org/egit/updates<br />
*Package in [[AUR]]: {{Package AUR|eclipse-egit}}<br />
<br />
==Updates==<br />
*Eclipse and the plugins installed with pacman are obviously updated with pacman itself.<br />
*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).<br />
<br />
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:<br />
<br />
http://download.eclipse.org/releases/indigo<br />
<br />
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.<br />
<br />
== Using Sun JDK in place of OpenJDK ==<br />
{{Accuracy}}<br />
Eclipse depends on openjdk6 by default, which you can easily replace with jdk, following [[Java|this article]].<br />
<br />
By the way, you may want to link the file /opt/java/bin/java to /usr/bin/java:<br />
# ln -s /opt/java/bin/java /usr/bin<br />
<br />
== Enable javadoc integration ==<br />
Want to see API entries when hovering the mouse pointer over standard Java methods?<br />
<br />
=== Online Version ===<br />
<br />
If you have constant internet access on your machine, you can use the on-line documentation provided by sun. Just follow these instructions:<br />
<br />
# Go to Window/Preferences, then go to Java/Installed JREs.<br />
# There should be one named "java" with the type "Standard VM". Select this and click Edit.<br />
# Select the {{Filename|/opt/java/jre/lib/rt.jar}} item under "JRE system libraries:", then click "Javadoc Location...".<br />
# Enter "http://java.sun.com/javase/6/docs/api/" in the "Javadoc location path:" text field.<br />
# Done!<br />
<br />
=== Offline Version ===<br />
<br />
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.<br />
<br />
# Start your favorite web browser and navigate to http://java.sun.com/javase/downloads/index.jsp<br />
# Search for "Java SE 6 Documentation" and click the Download link.<br />
# Follow the instructions to download the "jdk-6-doc.zip" file. (e.g. to {{Filename|/home/docs/jdk-6-doc.zip}}).<br />
# Go to Window/Preferences, then go to Java/Installed JREs.<br />
# There should be one named "java" with the type "Standard VM". Select this and click Edit.<br />
# Select the {{Filename|/opt/java/jre/lib/rt.jar}} item under "JRE system libraries:", then click "Javadoc Location...".<br />
# Select the point "Javadoc in archive"<br />
# Enter the path to the previously downloaded {{Filename|jdk-6-doc.zip}} (e.g. {{Filename|/home/docs/jdk-6-doc.zip}}) in the "Archive path:" text field.<br />
# Done!<br />
<br />
== Troubleshooting ==<br />
<br />
=== Autocompletion and javadoc render crash ===<br />
For some reason, libxul may crash. To fix this issue, you can try installing {{Package Official|libwebkit}} and adding the following lines in your {{Filename|/usr/share/eclipse/eclipse.ini}}: <br />
<br />
-Dorg.eclipse.swt.browser.UseWebKitGTK=true<br />
<br />
If that does not work (or if you do not want to use libwebkit) try this:<br />
<br />
:1. Download http://releases.mozilla.org/pub/mozilla.org/xulrunner/releases/1.9.0.11/runtimes/xulrunner-1.9.0.11.en-US.linux-i686.tar.bz2<br />
:2. Unpack it into /home/<Username>/.xulrunner (or another location)<br />
:3. Add this line to your Eclipse configuration file {{Filename|/usr/share/eclipse/eclipse.ini}}:<br />
<br />
-Dorg.eclipse.swt.browser.XULRunnerPath=/home/<Username>/.xulrunner<br />
<br />
:Now everything should just work fine and tooltips should display correctly.<br />
<br />
=== Crash on first boot or when choosing "Help->Welcome" ===<br />
See above.</div>Ethail