libGDX项目生成器:生成失败:找不到java系统编译器

libGDX项目生成器:生成失败:找不到java系统编译器,java,android,linux,eclipse,libgdx,Java,Android,Linux,Eclipse,Libgdx,生成项目时,libGDX抛出thid错误: FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ':core:compileJava'. > Cannot find System Java Compiler. Ensure that you have installed a JDK (not just a JRE) and configure

生成项目时,libGDX抛出thid错误:

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':core:compileJava'.
> Cannot find System Java Compiler. Ensure that you have installed a JDK (not just a              
JRE) and configured your JAVA_HOME system variable to point to the according directory.

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option                                      
to get more log output.

BUILD FAILED
我的java和jdk版本:

java版本“1.7.0_65”

OpenJDK运行时环境(IcedTea 2.5.1)(7u65-2.5.1-4ubuntu1~0.14.04.1)

OpenJDK 64位服务器虚拟机(构建24.65-b04,混合模式)

我该怎么办?
请帮忙

可能重复的您是否找到了解决方案?我也有同样的问题…我甚至不记得我为什么问这个问题或者我在做什么,抱歉@ShiroI解决了这个问题。我想你在你的项目中肯定使用了JRE文件夹而不是JDK,就像我一样。所以您无法正确编译libGDX项目