Installing the Latest Eclipse in Ubuntu with required environment settings for proper operation.
-
-
Save jpadhye/9fac06d147f939454cb9 to your computer and use it in GitHub Desktop.
Installing the Latest Eclipse in Ubuntu
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment