Home » Linux

Install Eclipse and PyDev on Ubuntu

6 February 2011 One Comment

Install Eclipse and PyDev on UbuntuHow to install Eclipse on Ubuntu? How to install PyDev on Ubuntu? It seems many people are asking these questions. With the increase in usage of open source software such as Ubuntu, people have become accustomed to writing applications in Ubuntu.

Once computer language in particular that developers like to use is Python. Python is an object-oriented programming language. It is easy to learn and fast to code. It runs on many different computers and operating systems.

Writing a Python program can be done using any editor, even a simple text editor like Notepad. If you are running your operating system on Ubuntu and you want a full-fledged IDE, you may want to invest the time to install and set up Eclipse. Eclipse is an IDE (Integrated Development Environment) for building, deploying and managing software. It is a source code editor and provides trace and debugging facilities.

The Eclipse Project was originally created by IBM in November 2001 and supported by a consortium of software vendors. Today, the Eclipse community consists of individuals and organizations from a cross section of the software industry.

Install Eclipse

1. Install Eclipse and Sun’s Java by running the following:

sudo apt-get install eclipse sun-java6-jdk

2. Make Sun’s Java the default by running the following:

sudo update-java-alternatives -s java-6-sun

3. Edit the JVM configuration file:

sudo -b gedit / etc/jvm

4. Add the following to the top of the file:


5. If you have 1GB or more of memory, you may want to increase the heap size for better performance. The argument Xms refers to the minimum heap size and Xmx refers to the maximum heap size. Edit the Eclipse script file:

sudo -b gedit /usr/bin/eclipse

6. Change VMARGS=”” to the following:

VMARGS=”-Xms512m -Xmx512m -XX:PermSize=128m -XX:MaxPermSize=128m”


Install PyDev

The PyDev Ubuntu setup requires some configuration in Eclipse. Installing PyDev on Ubuntu is similar to the installation on Windows or Macintosh.

1. Run Eclipse and then go to Help | Software Updates | Find and Install…

2. In the Feature Updates window, select Search for new features to install and click Next.

3. In the Install window, select New Remote Site.

4. In the New Update Site window, specify the following:

Name: PyDev

URL: http://update-production-pydev.s3.amazonaws.com/pydev/updates/site.xml
The old URL was http://pydev.org/updates

5. In the Search Results window, select both PyDev Extensions and click Next.

6. In the Feature License window, agree to the license agreement and click Next.

7. Configure the Python interpreter by going to Window | Preferences | Pydev | Interpreter – Python.

8. In the Python interpreters section, click New.

9. Locate your Python interpreter (e.g., /usr/bin/python).

10. When prompted, select your System PYTHONPATH. You can just leave the default checkboxes selected and click OK.

For further details about PyDev and additional information, visit the PyDev site.

One Comment »

  • Jeni said:

    On typing
    sudo apt-get install eclipse sun-java6-jdk
    I am getting:

    Package sun-java6-jdk is not available, but is referred to by another package.
    This may mean that the package is missing, has been obsoleted, or
    is only available from another source

    E: Package ‘sun-java6-jdk’ has no installation candidate

Leave your response!

Add your comment below, or trackback from your own site. You can also subscribe to these comments via RSS.

Be nice. Keep it clean. Stay on topic. No spam.

You can use these tags:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

This is a Gravatar-enabled weblog. To get your own globally-recognized-avatar, please register at Gravatar.