Eclipse
From ArchWiki
Contents |
Installing Eclipse
It is very easy to install the Eclipse SDK in Arch Linux:
# pacman -Sy eclipse
If you want to use eclipse for C/C++ programming also install eclipse-cdt
# pacman -S eclipse-cdt
Eclipse depends on openjdk6 by default, which you can easily replaced by jdk.
# pacman -S jdk
By the way, you may want to link the file /opt/java/bin/java to /usr/bin/java:
# ln -s /opt/java/bin/java /usr/bin
Subversion support
There's packages in AUR for enabling Subversion support.
eclipse-subclipse
http://aur.archlinux.org/packages.php?do_Details=1&ID=5280
# pacman -S eclipse-subclipse
Take a look at http://www-128.ibm.com/developerworks/opensource/library/os-ecl-subversion/ for more information about Subclipse.
eclipse-subversive
http://aur.archlinux.org/packages.php?do_Details=1&ID=10740
# aurbuild -s eclipse-subversive
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 online documentation provided by sun. Just follow these instructions:
- Go to Window/Preferences, then go to Java/Installed JREs.
- There should be one named "java" with the type "Standard VM". Select this and click Edit.
- Select the /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
If you have no internet connection on your development machine, or do not want to constantly loose traffic for the documentation, you can store the documentation on your local harddisk.
- Start your favorite webbrowser and navigate to http://java.sun.com/javase/downloads/index.jsp
- Search for "Java SE 6 Documentation" and click the Downloadlink.
- Follow the instructions to download the file "jdk-6-doc.zip" to your Harddrive (e.g. /home/docs/jdk-6-doc.zip).
- Go to Window/Preferences, then go to Java/Installed JREs.
- There should be one named "java" with the type "Standard VM". Select this and click Edit.
- Select the /opt/java/jre/lib/rt.jar item under "JRE system libraries:", then click "Javadoc Location...".
- Select the point "Javadoc in archive"
- Enter the path to the previous downloaded "jdk-6-doc.zip" (e.g. /home/docs/jdk-6-doc.zip) in the "Archive path:" text field.
- Done!