Skip to content

Instantly share code, notes, and snippets.

@tangnotes
Created April 29, 2016 06:59
Show Gist options
  • Save tangnotes/dd8ea619b3804e293b7c48233ba3df80 to your computer and use it in GitHub Desktop.
Save tangnotes/dd8ea619b3804e293b7c48233ba3df80 to your computer and use it in GitHub Desktop.
Install eclim
#!/bin/bash
export ECLIPSE_PREFIX=/usr/local
export ECLIPSE_HOME=$ECLIPSE_PREFIX/eclipse
export WORK_USER=linhua
sudo yum install -y xorg-x11-server-Xvfb
wget http://mirrors.yun-idc.com/eclipse//technology/epp/downloads/release/mars/2/eclipse-java-mars-2-linux-gtk-x86_64.tar.gz # (Fast at the time testing)
#wget http://mirrors.ustc.edu.cn/eclipse/technology/epp/downloads/release/mars/2/eclipse-java-mars-2-linux-gtk-x86_64.tar.gz
sudo tar -C $ECLIPSE_PREFIX -xzf eclipse-java-mars-2-linux-gtk-x86_64.tar.gz
sudo chown -R $WORK_USER:$WORK_USER $ECLIPSE_HOME
# https://sourceforge.net/projects/eclim/files/eclim/2.5.0/
wget http://jaist.dl.sourceforge.net/project/eclim/eclim/2.5.0/eclim_2.5.0.jar # (faster at the time of testing)
java -Dvim.files=$HOME/.vim -Declipse.home=$ECLIPSE_HOME -jar eclim_2.5.0.jar install
Xvfb :1 -screen 0 1024x768x24 &
DISPLAY=:1 $ECLIPSE_HOME/eclipse -nosplash -consolelog -debug -application org.eclipse.equinox.p2.director -repository http://download.eclipse.org/releases/mars -installIU org.eclipsest.web_ui.feature.feature.group
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment