"bash: ./eclipse: cannot execute binary file" when trying to install Eclipse

Solution 1:

I found my problem.

I had downloaded the 64-bit version but my system was 32-bit. When I tried the 32-bit version of Eclipse, extracted it and in the eclipse folder wrote in terminal

./eclipse    

it worked.