Can you change the SDK version of a project

Im getting a major.minor version error.
If i run java - version it tells me im using 1.8.0
when i mupx deploy "JAVA_HOME=C:…\jdk1.7.0_09
This seems to be the cause of the error. Is there a way to make the project use the same version of Java for the deploy? Change the JAVA_HOME path perhaps?