Ubuntu as JAVA development machine

JAVA JDK 7

java-logo

Add repository for Oracle JAVA by commands:

sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update

you can install JDK now by command

sudo apt-get install oracle-jdk7-installer

uninstall OpenJDK now

sudo apt-get remove --purge openjdk-* icedtea-*

Let’s check current java version

java -version

we should see message like this

java version "1.7.0_45"
Java(TM) SE Runtime Environment (build 1.7.0_45-b18)
Java HotSpot(TM) 64-Bit Server VM (build 24.45-b08, mixed mode)

You can also check your browser java plugin on page
http://www.java.com/en/download/installed.jsp?detect=jre

Set JAVA_HOME path

Open /etc/enviroment in nano (or another editor)

sudo nano /etc/environment

Add JAVA_HOME path to top of file

JAVA_HOME="/usr/lib/jvm/java-7-oracle"

Save file and restart computer.
You can check JAVA_HOME after restart by command:

echo $JAVA_HOME

You should see path which we set in /etc/enviroment

echo $JAVA_HOME
/usr/lib/jvm/java-7-oracle

Apache MAVEN

Download latest binary apache-maven in TAR.GZ archive from Apache site: http://maven.apache.org/download.cgi

Open terminal and go to /usr/local

cd /usr/local

Unpack downloaded tar.gz to the /usr/local directory

sudo tar xvzf ~/Downloads/apache-maven-3.2.1-bin.tar.gz

Set M2_HOME and path to maven bin

Open /etc/enviroment in nano (or another editor)

sudo nano /etc/environment

Add JAVA_HOME path to top of file

M2_HOME="/usr/local/apache-maven-3.2.1"

Add at the end of the PATH property

:/usr/local/apache-maven-3.2.1/bin"

final PATH should look similar as this

PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/usr/local/apache-maven-3.2.1/bin"

Save file and restart computer.
You can check M2_HOME after restart by command:

echo $M2_HOME

You should see path which we set in /etc/enviroment

echo $JAVA_HOME /usr/local/apache-maven-3.2.1

You can check your maven version by command

mvn -v

Output should look

Apache Maven 3.2.1 (ea8b2b07643dbb1b84b6d16e1f08391b666bc1e9; 2014-02-14T18:37:52+01:00)
Maven home: /usr/local/apache-maven-3.2.1
Java version: 1.7.0_51, vendor: Oracle Corporation
Java home: /usr/lib/jvm/java-7-oracle/jre
Default locale: en_US, platform encoding: UTF-8
OS name: "linux", version: "3.13.0-23-generic", arch: "amd64", family: "unix"

Rabbit VCS – SVN client for Unity and GNOME

Client for multiple verioning clients like subversion or git. If you know svn-tortoise you know what rabbit-vcs does.

RabbitVCS-Nautilus

Add repository

sudo add-apt-repository ppa:rabbitvcs/ppa
sudo apt-get update

Install RabbitVCS

sudo apt-get install rabbitvcs-core rabbitvcs-gedit rabbitvcs-cli rabbitvcs-nautilus3

Restart nauitlus by command

nautilus -q

Leave a Reply

Your email address will not be published. Required fields are marked *