Skip to content

Instantly share code, notes, and snippets.

@jpadhye
Forked from daisylb/install-eclipse.sh
Last active August 29, 2015 14:26
Show Gist options
  • Save jpadhye/9fac06d147f939454cb9 to your computer and use it in GitHub Desktop.
Save jpadhye/9fac06d147f939454cb9 to your computer and use it in GitHub Desktop.
Installing the Latest Eclipse in Ubuntu
#!/bin/bash
# If you're reading this on the GitHub gist, scroll down for instructions.
# If not, go to https://gist.github.com/1071034
eclipse_url="http://mirror.cc.columbia.edu/pub/software/eclipse/technology/epp/downloads/release/mars/R/eclipse-cpp-mars-R-linux-gtk-x86_64.tar.gz"
eclipse_bin="#!/bin/sh
export ECLIPSE_HOME='/opt/eclipse'
\$ECLIPSE_HOME/eclipse \$*"
eclipse_desktop="[Desktop Entry]
Name=Eclipse
Type=Application
Exec=env SWT_GTK3=0 UBUNTU_MENUPROXY=0 /opt/eclipse/eclipse
Terminal=false
Icon=/opt/eclipse/icon.xpm
Comment=Integrated Development Environment
NoDisplay=false
Categories=Development;IDE;
Name[en]=Eclipse
StartupNotify=true
X-Desktop-File-Install-Version=0.22"
echo "Installing dependencies..."
sudo apt-get install default-jre default-jdk
echo "Downloading Eclipse..."
wget -O eclipse.tar.gz "$eclipse_url"
tar xvf eclipse.tar.gz
sudo mv eclipse /opt/eclipse
echo -e "$eclipse_desktop" | sudo tee /usr/share/applications/eclipse.desktop

Installing the Latest Eclipse in Ubuntu with required environment settings for proper operation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment