Install oracle java, maven, git in opensuse

Install oracle java, maven, git in opensuse

This article shown how to install oracle java, git, maven and activemq, configure hostname in opensuse linux.

Install Oracle Java (JDK)

1, Download oracle jdk from website

2, Extract the package to temporary folder

tar xvfz ~/Downloads/jdk-8.tar.gz -C /tmp/

3, Set user group and permission

chown -R root:root /tmp/jdk1.8.0_66
chmod -R +x /tmp/jdk1.8.0_66/bin

4, Move JDK to system default location, ** 64bit opensuse /lib64/

mv /tmp/jdk1.8.0_66 /usr/lib64/jvm/

5, Updates the links and installed program, update jdk and compiler

Update linux system the oracle jdk/jre is installed and ready to be use.

update-alternatives --install /usr/bin/java java /usr/lib64/jvm/jdk1.8.0_66/bin/java 1065

update-alternatives --install /usr/bin/javac javac /usr/lib64/jvm/jdk1.8.0_66/bin/javac 1065

update-alternatives --install /usr/bin/jar jar /usr/lib64/jvm/jdk1.8.0_66/bin/jar 1065
-- notify jdk ready to use --

update-alternatives --install /usr/bin/java java /usr/lib64/jvm/jdk1.8.0_66/jre/bin/java 1065
-- notify jre ready to use --

6, Select java version

update-alternatives --config java

7, Set environment, append to bash config

vi $HOME/.bashrc or /etc/profile

export JAVA_HOME
export JRE_HOME
export PATH

8, Reload


9, Check java version in details

java -XshowSettings:properties -version


Install Git

zypper install git


Install Maven

1, Download to your current directory, let’s say Download folder


2, Exact the file

tar -xvzf apache-maven-3.3.9-bin.tar.gz

3, Move to /opt/ folder

mv apache-maven-3.3.9 /opt/

4, Update environment, cd to home directory

cd $home
vi .bashrc

5, Append the path

export JAVA_HOME=/usr/lib64/jvm/jdk1.8.0_66
export PATH=$PATH:/opt/apache-maven-3.3.9/bin

6, Reload

source .bashrc

7. Verify maven

mvn --version


Install ActiveMQ

1, Download activemq


2, Exact activemq

tar -xvzf apache-activemq-5.11.1-bin.tar.gz

3, Move to /usr/local folder

mv apache-activemq-5.11.1/ /usr/local/

4, Enable support scheduler, add schedulerSupport to true

vi activemq.xml

<broker xmlns="" 

5, Start activemq from you bin folder

/.activemq console


Update hostname

1, Update hostname

hostname abc

2, Update hostname

vi /etc/hostname

3, Update /etc/hosts

vi /etc/hosts

# IP-Address     Full-Qualified-Hostname  Short-Hostname              server123


“Sorry too many clients when trying to connect to PostgreSQL”

Edit file /var/lib/pgsql/data/postgresql.conf (OpenSUSE Linux) add more connection

connection max_connections = 300

Restart postgres

/etc/init.d/postgresql restart

-- OR --

service postgresql restart 



Write a Reply or Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.