#!/bin/bash
tar -xvf /usr/jdk/jdk-8u91-linux-x64.tar.gz
cd /usr/jdkint/jdk1*
home=`pwd`
echo $home
echo "JAVA_HOME=${home}" >>/etc/profile
echo "CLASSPATH=$JAVA_HOME/lib" >> /etc/profile
echo "PATH=$PATH:$JAVA_HOME/bin" >> /etc/profile
source /etc/profile