我试图使用ant命令构建pentaho,但我得到以下错误
compile.compile:
[javac] Compiling 369 source files to /opt/pentaho-kettle/pentaho-kettle/core/bin/classes
[javac] javac: invalid target release: 7
[javac] Usage: javac <options> <source files>
[javac] use -help for a list of possible options
BUILD FAILED
/opt/pentaho-kettle/pentaho-kettle/build.xml:123: The following error occurred while executing this line:
/opt/pentaho-kettle/pentaho-kettle/build.xml:128: The following error occurred while executing this line:
/opt/pentaho-kettle/pentaho-kettle/core/build-res/subfloor.xml:1339: Compile failed; see the compiler error output for details.
Total time: 2 seconds
我在运行应用程序之前使用以下命令更改了java:
bmartis @ bmartis-VirtualBox:/ opt / pentaho-kettle / pentaho-kettle $ sudo update-alternatives --config java 替代java有两种选择(提供/ usr / bin / java)。
Selection Path Priority Status
------------------------------------------------------------
0 /usr/lib/jvm/java-6-openjdk-i386/jre/bin/java 1061 auto mode
* 1 /usr/lib/jvm/java-6-openjdk-i386/jre/bin/java 1061 manual mode
2 /usr/lib/jvm/java-7-openjdk-i386/jre/bin/java 1051 manual mode
Press enter to keep the current choice[*], or type selection number: 2
update-alternatives: using /usr/lib/jvm/java-7-openjdk-i386/jre/bin/java to provide /usr/bin/java (java) in manual mode.
有人可以帮我这个吗?