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.