bash usr bin java cannot execute binary file

Fri May 29 2015

0.1 bash: /usr/bin/java: cannot execute binary file

When you get this error, it means that you are using the wrong version of JDK to run a specific java file. To fix this you must uninstall your current version of JDK. Next you must install the correct architecture of JDK. This for most people means install the 64-bit version of JDK.