如何在 ubuntu 14.04 上构建 openjfx?

如何在 ubuntu 14.04 上构建 openjfx?

我一直试图在 Ubuntu 14.04 上构建 openjfx,但收到错误

gradle tasks
:buildSrc:clean
:buildSrc:generateGrammarSource
:buildSrc:compileJava
/home/nika/openjfx/rt/buildSrc/src/main/java/com/sun/scenario/effect/compiler/backend/sw/sse/SSEBackend.java:85: error: ')' expected
    Comparator<Variable> c = (v0, v1) -> v0.getName().compareTo(v1.getName());
                                ^
/home/nika/openjfx/rt/buildSrc/src/main/java/com/sun/scenario/effect/compiler/backend/sw/sse/SSEBackend.java:85: error: ';' expected
    Comparator<Variable> c = (v0, v1) -> v0.getName().compareTo(v1.getName());
                                    ^
2 errors
:buildSrc:compileJava FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':compileJava'.
> Compilation failed; see the compiler error output for details.

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

 BUILD FAILED

 Total time: 5.334 secs

有人知道如何在 ubuntu 14.04 上构建 openjfx 吗?

答案1

我发现了问题,下载最新版本的 Gradle。Ubuntu repo 上的 Gradle 不能用于构建 openjfx8。但是以下链接可以帮助构建 Openjfx。

https://github.com/hgomez/obuildfactory/wiki/How-to-build-and-package-OpenJDK-8-with-OpenJFX-on-Linux

感谢 H.Gomez 创建了 Obuildfacory :) .....

相关内容