Eclipse

From ArchWiki

Jump to: navigation, search

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:

  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://java.sun.com/javase/6/docs/api/" in the "Javadoc location path:" text field.
  5. 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.

  1. Start your favorite webbrowser and navigate to http://java.sun.com/javase/downloads/index.jsp
  2. Search for "Java SE 6 Documentation" and click the Downloadlink.
  3. Follow the instructions to download the file "jdk-6-doc.zip" to your Harddrive (e.g. /home/docs/jdk-6-doc.zip).
  4. Go to Window/Preferences, then go to Java/Installed JREs.
  5. There should be one named "java" with the type "Standard VM". Select this and click Edit.
  6. Select the /opt/java/jre/lib/rt.jar item under "JRE system libraries:", then click "Javadoc Location...".
  7. Select the point "Javadoc in archive"
  8. 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.
  9. Done!
Personal tools