Skip to content

Prepare Development Environment in Ubuntu 12.04

romani edited this page Oct 5, 2012 · 14 revisions

Install GIT

  1. Install Git in Ubuntu: http://help.github.com/linux-set-up-git/

  2. Change fonts in GUI: Run GUI by command "git gui", If you do not like ugly font apply following

sudo aptitude install tk8.5
sudo update-alternatives --config wish

and pick /usr/bin/wish8.5

Install Java Sun/Oracle

1 Follow instructions from, chapter "Usage": https://github.com/flexiondotorg/oab-java6 after Update repository

sudo apt-get update

2 Install Sun Java6 JDK from Synaptic Package Manager.

sudo apt-get install sun-java6-jdk sun-java6-source sun-java6-plugin

3 Add to ~/.profile (execute the same, to define these variables in terminal)

export JAVA_HOME=/usr/lib/jvm/java-6-sun
export PATH=$PATH:$JAVA_HOME

make sure that ls -la /etc/alternatives/java point to your Sun 6 JDK "/usr/lib/jvm/java-6-sun/jre/bin/java". If you have openJDK please expect problems with compilation in Eclispe for "artifact com.sun.tools 1.5.0 is missing"

Install Maven3.

It will be necessary for compilation

  1. Install
sudo apt-get install maven
  1. add to ~/.profile
export PATH=/usr/share/maven/bin:$PATH

Install Mercurial.

It will be necessary for downloading main Checkstyle project and preparing patch.

sudo apt-get install mercurial

Download Eclipse EE.

  1. Unpack Eclipse and launch
  2. So if you do not like the new look of Eclipse, select Window -> Preferences -> General -> Appearance and select “Classic” as the theme. And restart afterwards. Afterwards Eclipse should very similar to what you are used to.
  3. Install eclipse-cs plugin from http://eclipse-cs.sourceforge.net/downloads.html it is necessary for our plugin compilation, this will help you testing, ... .
  4. Install EclEmma plugin for Eclipse to check that UTs are completely cover code.

Tools for convenient work

  1. "Open Terminal" for Nautilus file manager
sudo apt-get install nautilus-open-terminal
  1. File and Folder compare tool - Meld
sudo apt-get install meld