-
Download Eclipse (minimal installation)
-
Under Latest Release click the version number
-
Scroll down to Platform Runtime Binary (this downloads a minimal installation) and download the latest Linux (x86_64/GTK+) release
-
Extract the download
tar xvf eclipse-platform...tar.gz sudo mv eclipse /opt
-
Specify the Java version (so it doesn’t break if the default system Java gets changed)
sed -i.bak 's#-vmargs#-vm\n/usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java\n-vmargs#' /opt/eclipse/eclipse.ini
-
Adjust heap size, if necessary/desired
- To adjust it from the default of 512 MB to 1 GB:
sed -i 's/^-Xmx512m$/-Xmx1024m/g' /opt/eclipse/eclipse.ini
- To adjust it from the default of 512 MB to 1 GB:
-
If necessary, create an application launcher icon (for Unity, Xfce, etc)
echo "[Desktop Entry] Type=Application Name=Eclipse Icon=/opt/eclipse/icon.xpm Exec=/opt/eclipse/eclipse Terminal=false" >> ~/.local/share/applications/eclipse.desktop
-
Install additional features/plugins
-
Help > Install New Software
-
Install features in Eclipse repository
-
Work with > name of current Eclipse version (e.g. Luna)
-
Check any desired features
-
Java
- Eclipse Java Development Tools > Eclipse Java Development Tools
-
PHP
- Programming Languages > PHP Development Tools (PDT)
-
SVN (Subversive)
- Collaboration > Subversive SVN Team Provider
-
XML
- Programming Languages > Eclipse XML Editors and Tools
-
-
Click Next, and then follow the instructions to complete installation
-
Further instructions for SVN
- While waiting, install libsvn-java and subversion
sudo apt-get -y install libsvn-java subversion
- Then get svn version
svn --version
-
Set the path to the Java SVN libraries
sed -i 's#-vmargs#-vmargs\n-Dsubversion.native.library=/usr/lib/x86_64-linux-gnu/jni/#' /opt/eclipse/eclipse.ini
-
Once Eclipse restarts, Open Perspective > Other > SVN Repository Exploring
-
A window should pop up with different subversive SVN connectors
- Check the version of the JavaHL connector (SVNKit is slower and uses more memory) that corresponds with the version of subversion you have installed, click Finish, and then follow the instructions to complete installation
- While waiting, install libsvn-java and subversion
-
-
Install other plugins
-
Pydev (Python)
-
Android
http://developer.android.com/sdk/installing/installing-adt.html
If you get the error “sdk platform tools is missing”: “SDK Platform Tools component is missing!”
-
-
- Window > Preferences > General > Editors > Text Editors > Spelling > uncheck Enable spell checking > OK
-
Window > Preferences > General > Startup and Shutdown > uncheck all plugins > OK
-
Use dark theme, if desired
-
Change Eclipse to the dark theme
- Window > Preferences > General > Appearance > Theme > Dark
-
Fix plugin colors
-
The easiest way to do this is to install a theme, like Solarized:
-
Download this file: https://raw.githubusercontent.com/bmaupin/solarized-dark-high-contrast/master/eclipse/solarized-dark-high-contrast.epf
-
In Eclipse go to File > Import > General > Preferences > Next > browse to the file > Finish
-
-
-
-
Configure editors
-
Java
-
Window > Preferences > Java > Code Style > Formatter > Edit
-
Profile name > Custom
-
Indentation > Tab policy > Spaces only
-
Line Wrapping > check Never join already wrapped lines > OK
-
Java > Editor > Save Actions > check Perform the selected actions on save, Format source code, Additional actions > Configure
-
Check Remove trailing whitespace, Correct indentation > OK
-
Java > Code Style > Clean Up > Edit
-
Code Organizing > check Format source code, Remove trailing whitespace, Correct indentation, Organize imports > Profile name > Custom > OK > OK
-
-
Eclipse setup
Archived
This page has been archived and will receive no further updates.