Skip to content

Installing and Configuring Eclipse

Trey Stafford edited this page Jun 26, 2014 · 14 revisions

Eclipse is an integrated development environment that can be useful for editing and debugging the OPS Django application. This page is intended to be a guide for setting up Eclipse in the OPS development VMs. For information on how to use eclipse, see the "Using Eclipse" page (not available yet).

Downloading and installing Eclipse

  1. Download the latest version of eclipse with firefox here.

  2. Enter the following lines of code in a terminal:

tar -zxf eclipse*.tar.gz -C /opt 
chmod -R +r /opt/eclipse
touch /usr/bin/eclipse
chmod 755 /usr/bin/eclipse
  1. Open the eclipse file with vim: vim /usr/bin/eclipse

  2. Enter insert mode by pressing i.

  3. Paste the following into the file:

#!/bin/sh
export ECLIPSE_HOME="/opt/eclipse"

$ECLIPSE_HOME/eclipse $*
  1. Press the Esc key and then enter the following: :x

  2. start eclipse from the terminal: eclipse&

  3. If everything worked propertly, a 'Workspace Launcher' will open. Accepting the default is fine.

  4. Remove eclipse*.tar.gz from /home/ops/Downloads: rm -f /home/ops/Downloads/eclipse*.tar.gz

Installing PyDev

Pydev is a plugin for Eclipse that enables Python and Django projects.

  1. From the toolbar, navigate to Help->Install New Software...
  2. Click 'Add' next to the 'Work with' and enter PyDev for name and http://pydev.org/updates for location.
  3. Check the 'PyDev' selection box after it appears and click Next.
  4. Select PyDev for Eclipse and click Next.
  5. Accept the terms of the license agreement and click Finish. When a 'Selection Needed' box appears, check the box next to 'Brainwy Softward; PyDev; Brainwy' and press OK.
  6. Restart eclipse when prompted.