Install Development Prerequisites on windows

From iDempiere en

ref : https://wiki.idempiere.org/en/Install_Development_Prerequisites

Prerequisites

  1. [pgsql ](https://www.enterprisedb.com/downloads/postgres-postgresql-downloads)
  2. [jdk ](https://www.oracle.com/tw/java/technologies/downloads/#java17-windows)
  3. [eclipse](https://www.eclipse.org/downloads/packages/release/2024-03/r/eclipse-ide-enterprise-java-and-web-developers)
  4. [source code]( https://github.com/idempiere/idempiere.git
  5. [git] (https://git-scm.com/downloads/win)
  6. special lib
lib
caffeine-3.1.8.jar [Maven Central](https://repo1.maven.org/maven2/com/github/ben-manes/caffeine/caffeine/3.1.8/
HikariCP-5.1.0.jar [Maven Central](https://repo1.maven.org/maven2/com/zaxxer/HikariCP/5.1.0/)
javax.mail-api-1.6.0.jar [Maven Central](https://repo1.maven.org/maven2/com/sun/mail/javax.mail/1.6.0/)
core-3.4.0.jar (zxing) [Maven Central](https://repo1.maven.org/maven2/com/google/zxing/core/3.4.0/)


Clone the Code and Prepare

Use Maven to fetch dependencies:

git clone https://github.com/idempiere/idempiere.git
cd idempiere
git switch release-12
git pull

mvn verify -U
Upload build success.png

Set pgsql

CREATE ROLE adempiere SUPERUSER LOGIN PASSWORD 'adempiere';
CREATE DATABASE idempiere OWNER adempiere;
ALTER ROLE adempiere SET search_path TO adempiere, pg_catalog;
CREATE EXTENSION "uuid-ossp"

eclipse setting

  1. help >>install new software

releases-2024.03 https://download.eclipse.org/releases/2024-03

2. import maven proj>> use idempiere folder

3. add jars( missing 4 lib )

idempiere setting

org.idempiere.p2.targetplatform>>Environment>> setting win32 , x86_64 ,win32 ,zh-TW

Upload targetplatform setting.png


run install app run>> run configrations>>Eclipse Application>>install.app will show this

Setting.png


now got build success (pg dump data )

import data to sample db

jar xvf org.adempiere.server-feature/data/seed/Adempiere_pg.jar
psql -d idempiere -U adempiere -f Adempiere_pg.dmp

run server.product

problem

in ubuntu can run bash

bash RUN_SyncDBDev.sh 

but in windows still finding

use git bash to run ./ RUN_SyncDBDev.sh

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