pc not working

For a long time, the only recommended way to install Eclipse on Ubuntu has been using the distribution’s package manager. Sad news though, is that these distributions only contain versions 3.8.1-5.1 of Eclipse, which unfortunately doesn’t support Maven integration, a requirement for eclipse. This leaves us with the option of manually installing Eclipse only, and as you’ll see, it’s quite easy to go about.

Installing Eclipse Manually

The following steps are used to install Eclipse in the easiest way manually:

  1. From your desktop, open the terminal and switch to root permissions by entering this command: $ sudosu.
  2. Ensure that Eclipse Indigo is not installed in your system. If it is, you need to remove packages of both Eclipse and Eclipse platform in order to rid it off.
  3. Install Java 1.7 JDK using this command: # apt-get install openjdk-7-jdk.
  4. Install Maven using this command: apt-get install maven.
  5. Now that you no longer need root access, remove it by entering the following command: # exit
  6. Download Eclipse from the official site or any trusted third party websites, as long as it has “for java EE developers”, “for RCP and RAP developers” or “for Java developers” extensions. All versions work just well.
  7. Extract the Eclipse installation tarball using this command: $ cd

$ tar -xzvf<path/to/your-tar-file>

  1. Increase the memory for the installation by modifying this file~/eclipse/eclipse.ini
  • Edit the -xmx setting (line 20) to be at least 1GB, although the recommended size is 2 GB.
  • Edit the -XX: MaxPermSizeto512MB at the most. If you have the -xmx setting set to 1GB, it is best to use a lower value, e.g. 300 MB
  1. Run Eclipse using the following command: $ ~/eclipse/eclipse
  2. If all went well, Luna and the Maven integration software are already installed in the Luna.

As not all installations can be perfect, Eclipse is not an exception. Here are some tips to help you recover when things go wrong installing Eclipse on Ubuntu.

  • Uninstall Eclipse and Eclipse platform using this command:

 # apt-get remove eclipse eclipse-platform

  • Delete the workspace after exiting Eclipse and then recreate a new Eclipse workspace from scratch.
  • Ensure you don’t have a bad or outdated plugin that could be causing the problem. If this is the case, delete the Eclipse installation and start from scratch.

Leave a Reply