Q:

Can't open Eclipse in Ubuntu 12.04 (Error launching program)

I have a desktop shortcut that's supposed to run eclipse
[Desktop Entry]
Name=Eclipse 
Type=Application
Exec=/opt/eclipse/eclipse
Terminal=false
Icon=/opt/eclipse/icon.xpm
Comment=Integrated Development Environment
NoDisplay=false
Categories=Development;IDE
Name[en]=eclipse.desktop

The Icon is just the txt icon and it says Error launching program
Also when I try to run eclipse by double clicking the executable nothing happens at all
When I put /opt/eclipse/eclipse in the terminal I get this output. 

A:

You downloaded a 32-bit version of Eclipse.  This will not run with a 64-bit JVM (long story, native libraries).  
Remove your current Eclipse, download a 64-bit version of Eclipse and redo the whole installation.  Note that you need Java 8 for the Eclipse version you want to run now, and that may not be easily available for Ubuntu 12.04.  Get Java 8 running first or get an older version of Eclipse or update to Ubuntu 14.04 and then Ubuntu 16.04 which has OpenJDK 8 which will do.
Note:  These days Eclipse really want you to use their installer.  You may want to do that.  If you download a zip file anyway, just unzip it and run the eclipse binary.  You do not have to put it in /opt unless you want to share with other users on your machine.

