Unsupported major.minor version 51.0
I am currently using netbeans, just got it set up on vista, and I can't figure out why I'm getting the error:
java.lang.UnsupportedClassVersionError: project1/MainProject : Unsupported major.minor version 51.0
But, if I use code that is identical to mine that is made by netbeans I don't get the error, so it only happens when I make a not pre-defined project.
Any help is greatly appreciated, probably a stupid mistake on my part :P