Skip to content

Instantly share code, notes, and snippets.

@ggoral
Forked from ansell/install-java.sh
Last active August 29, 2015 14:18
Show Gist options
  • Save ggoral/d9e89763da18099c7dba to your computer and use it in GitHub Desktop.
Save ggoral/d9e89763da18099c7dba to your computer and use it in GitHub Desktop.
#!/bin/sh
# Install Java-8
sudo add-apt-repository ppa:webupd8team/java -y
sudo apt-get update
sudo apt-get install oracle-java8-installer
# Install Maven-3
cd ~/Downloads/
wget http://mirror.rackcentral.com.au/apache/maven/maven-3/3.2.5/binaries/apache-maven-3.2.5-bin.tar.gz
cd /opt/ && sudo tar -xzvf ~/Downloads/apache-maven-3.2.5-bin.tar.gz
sudo update-alternatives --install /usr/bin/mvn maven /opt/apache-maven-3.2.5/bin/mvn 1001
# Install Eclipse
cd ~/Downloads/ && wget http://mirrors.ibiblio.org/pub/mirrors/eclipse/technology/epp/downloads/release/luna/SR1/eclipse-java-luna-SR1-linux-gtk-x86_64.tar.gz
cd /opt/ && sudo tar -xzvf ~/Downloads/eclipse-java-luna-SR1-linux-gtk-x86_64.tar.gz
sudo chown -R root:root eclipse
sudo update-alternatives --install /usr/bin/eclipse eclipse /opt/eclipse/eclipse 1001
sudo cat <<EOF >> /usr/share/applications/eclipse.desktop
[Desktop Entry]
Name=Eclipse 4
Type=Application
Exec=/opt/eclipse/eclipse
Terminal=false
Icon=/opt/eclipse/icon.xpm
Comment=Integrated Development Environment
NoDisplay=false
Categories=Development;IDE;
Name[en]=Eclipse
EOF
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment