Showing posts with label Fedora 20. Show all posts
Showing posts with label Fedora 20. Show all posts

Monday, February 17, 2014

Setup Eclipse Binary for Eclipse Official Website in Fedora 20

Following is a sample note to setup eclipse binary from Official Eclipse Website instead of using yum.

I chose to go down this path since yum is several revisions behind the official version.

# Install jdk development if not already, to prevent some strange behavior when compiling code
sudo yum -y install java-1.7.0-openjdk-devel.x86_64

# Download the eclipse from official site. (http://www.eclipse.org/)
wget http://www.eclipse.org/downloads/download.php?file=/technology/epp/downloads/release/kepler/SR1/eclipse-jee-kepler-SR1-linux-gtk-x86_64.tar.gz eclipse.tar.gz

# Unpackage it
mkdir -p eclipse
cd eclipse
tar -xvf ../eclipse.tar.gz

# Create eclipse.desktop file
cat > ~/eclipse.desktop <<"EOF"
[Desktop Entry]
Encoding=UTF-8
Name=Eclipse IDE
Exec=/opt/eclipse/eclipse
Icon=/opt/eclipse/icon.xpm
Type=Application
Categories=Development;
EOF

# Make it all permission
chmod a+wrx eclipse.desktop

cd ..

# Copy the binary to opt
sudo mv eclipse /opt/eclipse

# Make the desktop symbolic link
sudo ln /opt/eclipse/eclipse.desktop /usr/share/applications/eclipse.desktop

One should be able to see it in Search Menu

Thanks.

Sincerely,
Danil