I used to enjoy playing robocode so I loaded it onto my new box running Ubuntu Oneiric Ocelot which includes openjdk-6 and openjdk-7. (And Canonical sets it up so that /usr/bin/javac gives 1.7)
I can compile a simple robot R1, but when I to load it (or just ctrl-r robocode's list of packages) I get the dreaded
myrobots.R1: Got an error with this class: java.lang.UnsupportedClassVersionError: myrobots/R1 : Unsupported major.minor version 51.0
So it looks to my newbie eye that robocode is built with an older javac that I'm using. Is that right? Any advice on fixing this? I'm willing to retrograde to Java 1.6 but I don't want to have any 1.5 on this machine.