You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
sudo apt update -y
apt install openjdk-17-jdk -y
# If any issuws wrt brken
apt --fix-broken install
cd /opt/
#wget https://dlcdn.apache.org/maven/maven-3/3.8.7/binaries/apache-maven-3.8.7-bin.tar.gz
wget https://dlcdn.apache.org/maven/maven-3/3.8.8/binaries/apache-maven-3.8.8-bin.tar.gz
tar -xzvf apache-maven-3.8.8-bin.tar.gz
export PATH=$PATH:/opt/apache-maven-3.8.8/bin
mvn --version
# To make mvn avaialble after we exit also, do the following steps : for sudo only
vi /etc/profile.d/maven.sh
export PATH=$PATH:/opt/apache-maven-3.8.7/bin
export M2_HOME=/opt/apache-maven-3.8.7
sudo chmod +x /etc/profile.d/maven.sh
source /etc/profile.d/maven.sh
#Login as a root user
sudo su -
##Change dir to /optcd /opt
yum install wget -y
wget -c --header "Cookie: oraclelicense=accept-securebackup-cookie" http://download.oracle.com/otn-pub/java/jdk/8u131-b11/d54c1d3a095b4ff2b6607d096fa80163/jdk-8u131-linux-x64.rpm
yum install jdk-8u131-linux-x64.rpm -y
java -version