Install Development Prerequisites

From iDempiere en
Jump to: navigation, search

Table of Contents | Install Development Prerequisites | Download the Code

The examples on this guide are using the following versions:

  • Ubuntu 18.04.1 64 bits
  • PostgreSQL 9.6.10
  • PostgreSQL contrib (for UUID support)
  • Mercurial Client 4.5.3
  • Maven 3.6.0
  • OpenJDK 11.0.1
  • Eclipse IDE for Java EE Developers 4.9.0 SimRel.2018-09
  • Java 11 Support for Eclipse 2018-09 (4.9)
  • Mercurial Eclipse Plugin 2.6.0
  • Tycho Build Tools 0.4.1
  • Maven Tycho Utilities 1.0.0
  • Tycho Configurator
  • m2e connector for maven-dependency-plugin

But this guide can be used in other systems (even Windows) taking care of installing the corresponding packages and using corresponding commands.

Install Ubuntu

Please refer to http://www.ubuntu.com/download

Install PostgreSQL 9.6

iDempiere can also run with Oracle 11G or 12C, and also with any PostgreSQL >= 9.6, but for this tutorial we use postgresql 9.6 - see http://www.postgresql.org/download/linux/ubuntu/ for details

echo "deb http://apt.postgresql.org/pub/repos/apt/ xenial-pgdg main" | sudo tee /etc/apt/sources.list.d/pgdg.list
wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add -
sudo apt-get update
sudo apt-get install postgresql-9.6
sudo apt-get install postgresql-contrib-9.6  # this is not required after postgresql-10

Install Mercurial Client 4.5.3

sudo apt-get install mercurial

Install OpenJDK 11.0.1

sudo add-apt-repository ppa:openjdk-r/ppa
sudo apt-get update
sudo apt-get install openjdk-11-jdk

Install Maven 3.6.0

sudo apt-get install maven

Or alternative you can get maven installed manually. I use apache-maven-3.6.0 installed in a local folder, you can follow instructions to install maven from maven manual

Install Eclipse Simrel

Download the corresponding version for your operating system from "Eclipse IDE for Java EE Developers"

For Ubuntu 18.04.1 64 bits I downloaded SimRel.2018-09 version 4.9.0 here

On Ubuntu, you just uncompress it and it is ready for use. You could move the folder somewhere sensible, but this is optional. For the purposes of this tutorial, let's suppose you uncompressed Eclipse in a folder called $ECLIPSE_HOME.

The first time you run Eclipse it will ask you for the workspace folder. You can use the default workspace because you will change it later,

Install Java 11 Support for Eclipse

  • Open the eclipse just installed
  • Navigate to Help > Eclipse Marketplace
  • Fill the Find box with: Java 11 Support for Eclipse
  • Push the "Go" button
  • Push the "Install" button in front of the "Java 11 Support for Eclipse 2018-09 (4.9)" found
    • Accept the terms, certificate, etc until installed, no need to restart yet

Install Mercurial Eclipse Plugin 2.6.0

  • Navigate to Help > Eclipse Marketplace
  • Fill the Find box with: MercurialEclipse
  • Push the "Go" button
  • Push the "Install" button in front of the "MercurialEclipse 2.2" found (note this install 2.6.0 despite is named 2.2)
    • Accept the terms, certificate, etc until installed, no need to restart yet

Install Tycho Build Tools

Install Maven Tycho Utilities

  • Navigate again to Help > Eclipse Marketplace
  • Fill the Find box with "Tycho" and click "Go"
  • Click Install for "Maven Tycho Utilities 1.0.0"
    • Accept the terms, certificate, etc until installed, no need to restart yet

Install m2e Connector

  • Navigate to Window > Preferences
  • Navigate to Maven > Discovery
  • Click Open Catalog
  • On Find field, enter Tycho
  • Select Tycho Configurator, click Finish to install it
    • Accept the terms, certificate, etc until installed, no need to restart yet
  • Click again Open Catalog
  • On Find field, enter m2e connector for maven-dependency-plugin
  • Select m2e connector for maven-dependency-plugin, click Finish to install it
    • Accept the terms, certificate, etc until installed
  • Close eclipse

Now you have your prerequisites ready to receive the iDempiere sources


This tutorial is brought to you by Carlos Ruiz from GlobalQSS. Feel free to improve directly or suggest using the Discussion tab.