Install apache derby

Steps to install apache derby on ubuntu :

Get the download link of apache derby on below URL :

http://db.apache.org/derby/derby_downloads.html

Download the apache derby for your version of java

wget http://apachemirror.wuchna.com//db/derby/db-derby-10.14.2.0/db-derby-10.14.2.0-bin.tar.gz -P ~/Downloads/

Unzip it to the /opt directory

sudo tar -C /opt/ -zxvf ~/Downloads/db-derby-10.14.2.0-bin.tar.gz

Add below lines to your ~/.profile or ~/.bashrc (Adding derby to path variable)

export DERBY_HOME=/opt/db-derby-10.14.2.0
export PATH=${GRADLE_HOME}/bin:${DERBY_HOME}/bin:${PATH}

Now reload the bashrc and start the apache derby server using startNetworkServer command

source ~/.bashrc
sudo /opt/db-derby-10.14.2.0/bin/startNetworkServer
#execute with sudo since it need many access

Run the command sysinfo to get all the details about apache derby

sysinfo

Connecting to the server via IJ tool and creating a database

Leave a Comment