bash: ./eclipse: cannot execute binary file

KItis picture KItis · Feb 4, 2011 · Viewed 37.1k times · Source

i am working on Ubuntu10.10 OS and i have downloaded eclipse-jee-helios-SR1-linux-gtk-x86_64.tar.gz. my computer is 64 bit machine.

when i untar eclipse and try run ./eclipse from command line, it gives me above error.

when i run file eclipse , it gives me following information.

 eclipse: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked (uses
 shared libs), for GNU/Linux 2.4.0, not stripped

Could someone help me to find out what is going wrong here

Thanks in advance for any help

Answer

jpkrohling picture jpkrohling · Feb 4, 2011

My bet is that you are using a x86 Ubuntu with a x86_64 JVM. To make sure your Ubuntu is 64 bits, run the following command:

$ uname -i