Jai le Leu

integre java depuis le vagrant up

#!/usr/bin/env bash
fakeroot -- make-jpkg /vagrant_data/jdk-8u102-linux-x64.tar.gz << EOF
EOF
sudo dpkg -i oracle-java8-jdk_8u102_amd64.deb
#!/usr/bin/env bash
export DEBIAN_FRONTEND=noninteractive
sudo cp /etc/apt/sources.list sources.list.tmp
sudo sed 's/ main/ main contrib/g' < sources.list.tmp > /etc/apt/sources.list
sudo rm sources.list.tmp
export DEBIAN_FRONTEND=noninteractive
sudo echo "deb http://ppa.launchpad.net/webupd8team/java/ubuntu xenial main" | tee /etc/apt/sources.list.d/webupd8team-java.list
sudo echo "deb-src http://ppa.launchpad.net/webupd8team/java/ubuntu xenial main" | tee -a /etc/apt/sources.list.d/webupd8team-java.list
sudo echo oracle-java8-installer shared/accepted-oracle-license-v1-1 select true | sudo /usr/bin/debconf-set-selections
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys EEA14886
sudo apt-get update
sudo apt-get -y upgrade
sudo apt-get -y install java-package
sudo apt-get -y install libgl1-mesa-glx libgtk2.0-0 libxslt1.1 libxtst6 libxxf86vm1
echo 'export JAVA_HOME=/usr/lib/jvm/jdk-8-oracle-x64' >> .bashrc
sudo apt-get -y install x-window-system
sudo apt-get -y install oracle-java8-installer
sudo apt-get -y install oracle-java8-set-default
sudo apt-get -y install maven
cp .bashrc .bashrc_1
sed 's/#alias/alias/g' < .bashrc_1 > .bashrc_2
sed 's/#force_color_prompt/force_color_prompt/g' < .bashrc_2 > .bashrc
rm .bashrc_*
echo 'export JAVA_HOME=/usr/lib/jvm/jdk-8-oracle' >> .bashrc
......