[solved] [LibGDX] Unsupported major.minor version 51.0 problem

Hi,

I’m working on a different pc now and trying to setup libgdx on it, but i can’t get it to working.
Whenever I try to build my project I get an error message:

[quote]…/RoboVMPlugin: Unsupported major.minor version 51.0
[/quote]
I searched around an apparently a bunch of people get this problems fixed by upgrading their JDK to 1.7 and above & setting their JAVA_HOME to the JDK folder.
So i’ve done that, but i still get the same error msg (I restarted my pc).

Does anyone know how i fix this?

  1. I have downloaded and installed Java JDK 7u50
  2. I have set JAVA_HOME under system variables in Windows 7 to C:\Program Files (x86)\Java\jdk1.7.0_60 (also tried with \bin)

I am very new to gradle and maven, so I’m not sure if this helps. But it looks to me that you have configured a wrong robovom version in your build.gradle file.

Check your build.gradle file in the root of your project. Somewhere at the start you specify which robovm version you are using. It seems to me that you have set it to version 51 (which should be jdk7s versoin number, if I’m not mistaken). I have it set to 0.0.11


allprojects {
    [...]
    ext {
        appName = 'xxx'
        gdxVersion = '1.0-SNAPSHOT'
        roboVMVersion = '0.0.11'
    }
    [...]
}

Provide more information if that doesn’t help. What version of libgdx are you using? Are you using the old ui based setup or the new gradle based? Maybe post your gradle.build file if you are using gradle build.

Edit:
I just have seen an update on the libgdx page => http://libgdx.badlogicgames.com/news.html

I’m using the new gradle based …
But it looks like i got it solved right now. (tnx for your help though)

For whom it may consider.

I was running jdk 1.6 which needed to be upgraded to 1.7.
but i simply installed the wrong jdk version. 32 instead of the 64bit

I re-installed the 64bit version which installs in c:\program files (instead of program files (x86) ).
pointed to it in the eclipse.ini file by adding:

-vm
C:\Program Files\Java\jdk1.7.0_60\bin\javaw.exe

added JAVA_HOME to the Environment variables
(of my windows 7 system properties) - > system variables and set the variable value to:
C:\Program Files\Java\jdk1.7.0_60

added it to the path…

updated eclipse’s roboVM plugin

and finally got it to work