Gradle build with Java 8

前端 未结 2 679
闹比i
闹比i 2021-01-01 17:48

I\'m trying to build Java 8 project with Gradle 1.6, but I\'m stuck on this error:

Execution failed for task \':ejb:compileJava\'
invalid target release: 1.8         


        
相关标签:
2条回答
  • 2021-01-01 17:54

    I found picking wrong JAVA_HOME path value. After updating correct path, it's working for me. No need to do any change.

    0 讨论(0)
  • 2021-01-01 18:10

    Found the answer. I replaced JAVA_HOME

    D:\Program Files\Java\jdk1.8.0
    

    with

    D:\Progra~2\Java\jdk1.8.0
    

    and build succeeded.

    0 讨论(0)
提交回复
热议问题