- Requirements - Configuring your JAVA HOME and ADEMPIERE HOME
- Copy the Adempiere_<VERSION>.zip to your home directory for e.g. /home/user/
- Right click on the zip file and do extract here
- It will create a folder Adempiere with all the its files and folders
export JAVA_HOME=/usr/lib/jvm/java-6-sun-1.6.0.00/
- Go to your home directory /home/user/ on your file browser
- Go to View -->> Show Hidden Files on the menu bar ( or simply Ctrl + h )
- Open .profile file and add the following lines at the bottom
export ADEMPIERE_HOME=/home/user/Adempiere/
(change "user" with the name of your user directory and check the java directory to make sure the name is correct)- Installing and Configuring PostgreSQL for Pljava
- You need to logout and relogin for it to take your JAVA HOME and ADEMPIERE HOME
- Go to System --> Administration -->Synaptic Package Manager
- Search for JDK and PostgreSQL and pgAdmin3
- Choose sun-6-JDK for java
- Choose PostgreSQL 8.2
- Choose pgAdmin3
- Right Click and do Mark for installation for all of them
- Do Apply
- It will download and install PostgreSQL, JDK java and PGadmin3 for you
- Download the PLjava from PGfoundry.org
- For 64bit users, download from pljava64bit from Sim IT Sdn Bhd
You will need root rights to proceed
- For other versions of PostgreSQL, you can download pljava at here.
# Database administrative login by UNIX sockets
- Once PostgtreSQL has been installed, Open a terminal
- Do su and and enter your password (to login as root)
- Do passwd postgres to set the user postgres a password which is required
- gedit /etc/postgresql/8.2/main/pg_hba.conf
- Change the authentication method to trust
- Add your database host IP under IPv4 if you are on a network (in my case my IP is 192.168.0.161)
local all postgres trust
# TYPE DATABASE USER CIDR-ADDRESS METHOD
# "local" is for Unix domain socket connections only
local all all trust
# IPv4 local connections:
host all all 127.0.0.1/32 trust
host all all 192.168.0.161/24 trust
# IPv6 local connections:
host all all ::1/128 trustunzip pljava.zip -d /opt/
- Unzip the pljava.zip to /op/
Look for listen_addresses and uncomment it i.e. remove the # and replace localhost by a *
- gedit /etc/postgresql/8.2/main/postgresql.conf
dynamic_library_path = '\$libdir:/opt/pljava'
- For pljava you will need these variable and add these lines to postgresql.conf
custom_variable_classes = 'pljava'
pljava.classpath = '/opt/pljava/pljava.jar'gedit /etc/ld.so.conf
- Now edit /etc/ld.so.conf
$JAVA_HOME/jre/lib/i386
- Add these lines to ld.so.conf
$JAVA_HOME/jre/lib/i386/client
$JAVA_HOME/jre/lib/i386/native_threads
$JAVA_HOME/jre/lib/i386/server
- Do ldconfig to reload the configuration
su - postgres
- Now restart the PostgreSQL Server
/etc/init.d/postgresql-8.2 restartPgAdmin III
- Now go to Applications --> System tools --> pgAmin III
New Server Registration
- Do a New Server Register Registration
- Creating a role and database
- Enter the database host IP
- Give a description
- Enter the password that you have set for user postgres
New Role
- Create a role as adempiere with password adempiere and give it all privileges
New Database
- Create a database and assign the owner to adempiere
Alternatives:Create User/Role and Database
- Open a terminal and type in
- Installing Pljavacp /home/user/Adempiere/lib/postgresql.jar /opt/pljava
- To proceed with pljava installation you will need postgresql.jar
- Login as root on a terminal
- Copy it postgresql.jar and put it /opt/pljava (do it under root)
cd /opt/pljava
java -cp postgresql.jar:pljava.jar:deploy.jar org.postgresql.pljava.deploy.Deployer -database adempiere -user adempiere -password adempiere -install
- Issues with libjvm.sosu
- Edit /etc/ld.so.conf as root
gedit /etc/ld.so.conf/usr/lib/jvm/java-6-sun-1.6.0.00/jre/lib/i386
- Replace $JAVA_HOME and put the exact path (/home/user/jdk1.6.0/) and it should be as follows
/usr/lib/jvm/java-6-sun-1.6.0.00/jre/lib/i386/client
/usr/lib/jvm/java-6-sun-1.6.0.00/jre/lib/i386/native_threads
/usr/lib/jvm/java-6-sun-1.6.0.00/jre/lib/i386/server
- Do ldconfig to reload the configuration
- Importing the database dump
- Install your pljava
su - postgres
- Go to pgAdminIII
- Connect to the server
- Go to Adempiere database and drop cascade sqlj schema
- Now you can import your database
- Open a terminal and type in
psql -d adempiere </home/user/Adempiere/data/Adempiere_pg.dmp
- Export/Backup Databasesu - postgres
- Open a terminal and type in
pg_dump -U username -cif > /home/user/filename.dmp dbname
- Installing AdempiereCredentials:
- Go to $ADEMPIERE_HOME
- Run RUN_setup.sh and enter your credentials, test and save
- Once it's done, then run RUN_Adempiere.sh to start Adempiere
Java Home: This is the path to your java home, it is suppose to be set automatically.
Adempiere Home: This is the path to your Adempiere home, it is suppose to be set automatically.
Application Server: "Your computer name"
Web Port: 8088
SSL: 4443
Database Server: localhost
Database Type: postgresql
Database Name: adempiere
Database Port: 5432
Database User: adempiere
- Issues with RUN_Adempiere.sh
- If you got a "Permission denied" error when you try to install Adempiere , go to Adempiere folder under root and change the permissions of the whole folder to allow it to be installed.
- Special thanks for RealPSL and Dantam for there help on Ubuntu forums
- Most of the components of this guide was taken from Postirita and Adempiere Wiki
Bookmarks