Okay. So I downloaded java 12.0.1 and I have set my JAVA_HOME
and path
variables to my jdk bin loaction. In CMD, when I run java -version
, it does work, and I get the version. Everything works fine.
Problem:
However, in the libGDX setup (gdx-setup.jar) when I try to Generate Code, I get this following error:
ERROR: JAVA_HOME is set to an invalid directory: C:\Program Files\Java\jdk-
12.0.1\bin
Please set the JAVA_HOME variable in your environment to match the
location of your Java installation.
However, any other app that uses Java
works (such as Eclipse IDE).
What am I doing wrong? Does libGDX not support java 12.0.1
?