-
Notifications
You must be signed in to change notification settings - Fork 2
Installing and Configuring Eclipse
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).
-
Download the latest version of eclipse with firefox here.
-
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
-
Open the eclipse file with vim:
vim /usr/bin/eclipse
-
Enter insert mode by pressing i.
-
Paste the following into the file:
#!/bin/sh
export ECLIPSE_HOME="/opt/eclipse"
$ECLIPSE_HOME/eclipse $*
-
Press the Esc key and then enter the following:
:x
-
start eclipse from the terminal:
eclipse&
-
If everything worked propertly, a 'Workspace Launcher' will open. Accepting the default is fine.
-
Remove eclipse*.tar.gz from /home/ops/Downloads:
rm -f /home/ops/Downloads/eclipse*.tar.gz
Pydev is a plugin for Eclipse that enables Python and Django projects.
- From the toolbar, navigate to Help->Install New Software...
- Click 'Add' next to the 'Work with' and enter
PyDev
for name andhttp://pydev.org/updates
for location. - Check the 'PyDev' selection box after it appears and click Next.
- Select PyDev for Eclipse and click Next.
- 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.
- Restart eclipse when prompted.