I have installed Eclipse as following:
1 → Download eclipse-standard-kepler-SR2-linux-gtk-x86_64.tar.gz
to my 14.04
2 → Extracted it using the command,
sudo tar -xvf eclipse-standard-kepler-SR2-linux-gtk-x86_64.tar.gz
3 → Moved eclipse to /opt/
using command,
sudo mv eclipse /opt/
4 → Created Icon(64x64) for eclipse using GIMP Image Editor.
5 → Installed gnome-panel using,
sudo apt-get install --no-install-recommends gnome-panel
6 → And Create Application by using,
sudo gnome-desktop-item-edit /usr/share/applications/ --create-new
7 → Select Icon,
8 → Select eclipse application for comment,
9 → Finally enter command and click OK.
I have given everything required, and the application created and showing,
But when I open this application it's not working.
(Note: I have created another one, because first one not worked, and now both not working. That why picture showing two eclipse.)
When I tried to open it in terminal, I got
bash: /opt/eclipse/eclipse: cannot execute binary file: Exec format error
Please tell me where the problem may occur ?
If you get
that usually means you use the wrong architecture. In this case you downloaded the 64bit version but should use the 32bit version of Eclipse.
That means the file is damaged. Perhaps something went wrong while you did extraction. To ensure that it's not archive problem, follow these instructions:
Every download has an associated link "(md5)" to a *.md5 file containing its MD5 checksum. Download this file into the same directory as the appropriate
tar.gz
file.Execute the command
md5sum -c <gzfilename>.md5
. The result<gzfilename>: OK
is indicative of an intact download.If the check succeeds, you have to remove Eclipse (
sudo rm -rf /opt/eclipse
) and repeat the steps you mentioned. If not, you have to redownload the file.