#13 Java 7


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.

Any suggestions?



  • Anonymous - 2011-10-14

    More info... I am not using the outdated ubuntu robocode package.
    I downloaded robocode 1.7.3 and its about box says it is using the java 1.6,runtime.
    I verified that the robocode compiler options found and use openjdk-1.6.
    But I still get the version mismatch error which mentions 51.0.

    Please help if you are able.


  • Nobody/Anonymous

    It is the other way around, you have compiled with a Java 1.7 compiler and robocode runs java 1.6



Cancel  Add attachments

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

No, thanks