Install Development Prerequisites

From iDempiere en

Table of Contents | Install Development Prerequisites | Download the Code

IMPORTANT NOTE BEFORE STARTING: There is an alternative for fast installing development environment on Linux being worked by Heng Sin - you can check and test it here: https://github.com/hengsin/idempiere-dev-setup

Prerequisites

These prerequisites apply both for release 11 and for development.

The examples on this guide are using the following versions:

  • Ubuntu 22.04 64 bits
  • PostgreSQL 15 (used for this guide, you can use any postgres >=11)
  • git Client
  • Maven 3.9.x
  • OpenJDK 17
  • Eclipse IDE for Enterprise Java Developers 2023-12

This guide can be used in other systems (even Windows) taking care of installing the corresponding packages and using corresponding commands. However, for Windows is easier to follow these video How-To

NOTE: Installing git on windows install a git bash command which is capable of executing all the scripts same as in linux.

Install Ubuntu

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

Install PostgreSQL 15

iDempiere can also run with Oracle 12c and later, and also with any PostgreSQL >= 11, for this How-To we use postgresql 15 - see http://www.postgresql.org/download/linux/ubuntu/ for details

# Create the file repository configuration:
sudo sh -c 'echo "deb http://apt.postgresql.org/pub/repos/apt $(lsb_release -cs)-pgdg main" > /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-15

Configure pg_hba.conf

After installing postgres you must check the correct configuration of /etc/postgresql/15/main/pg_hba.conf

The following line requires change of the authentication method:

local   all             all                                     peer

Change to:

local   all             all                                     scram-sha-256

Please NOTE that some guides suggest configuring trust instead of scram-sha-256 - but that creates a security issue on your postgres.

And then reload the configuration:

sudo service postgresql reload

Install git Client

sudo apt-get install git

Install OpenJDK 17

sudo apt-get install openjdk-17-jdk

Install Maven

Follow instructions to install maven 3.9.x from maven manual.

Reference:
https://maven.apache.org/install.html
https://vanessuniq.medium.com/installing-the-latest-apache-maven-on-ubuntu-e71fe47aa204

Install Eclipse

Download the corresponding version for your operating system from "Eclipse IDE for Enterprise Java and Web Developers". At this moment iDempiere requires minimum the 2023-03 version of Eclipse (on this example we are installing the version 2023-12).

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 How-To, let's suppose you uncompressed Eclipse in a folder pointed with the variable $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.

Now you have your prerequisites ready to receive the iDempiere sources, eclipse can be restarted now.


This How-To is brought to you by Carlos Ruiz from BX Service GmbH. Feel free to improve directly or suggest using the Discussion tab.

Table of Contents | Install Development Prerequisites | Download the Code

Cookies help us deliver our services. By using our services, you agree to our use of cookies.