On my work computer, I have Windows 7 x64 with JDK 1.7 installed. I created a project in Netbeans and all went well. I then copied my project onto my home computer that is running Mac OS X 10.6, which is running JDK 1.6. The build fails with an error message about an unsupported major.minor version .51. Googling and searching concludes that it is because of a JDK version mismatch. Oracle does not allow JDK 1.7 to be installed on Mac OS X 10.6, so I am stuck with JDK 1.6 on my Mac.
Is there a way I can take my 1.7 code and get it to build and run on my Mac OS X 10.6 running JDK 1.6? Or is there way I can take my code back to my JDK 1.7 machine and downgrade the compatibility to 1.6? Basically I need the code to run on my work computer and home computer.