hgcbvw
Last Updated: February 25, 2016
·
257
· bt3gl
1396323302436

Eclipse in Fedora 20

Downloading and Installing

After downloading from here, install it using:

$ tar -xvzf eclipse-standard-kepler-R-linux-gtk.tar.gz -C /opt
$ chmod -R +r /opt/eclipse

Create an Eclipse executable on/usr/bin path:

$ touch /usr/bin/eclipse
$ chmod 755 /usr/bin/eclipse
$ subl ~/.bashrc

Paste the following content to the file:

#!/bin/sh
export ECLIPSE_HOME="/opt/eclipse"
$ECLIPSE_HOME/eclipse $*

Configuring

Adding libraries:

In the project directory, create a lib folder. Add all the libraries you need to project. Example:

$ curl http://search.maven.org/remotecontent?filepath=com/google/guava/guava/15.0/guava-15.0-sources.jar >> guava.source.jar

Shortcuts

CTRL + SPACE

Probably the most useful shortcut, it will auto-complete and show options.

CTRL + SHIFT

Opens "Open Type" to open a file.

CTRL + CLICK

Shows the definition, documentation. You might have to download the java source zip file, and add it using open type.

F11

For debug/run.

Say Thanks
Respond