gradle doesn't work in Intellij - problems with JAVA_HOME

后端 未结 5 1990
爱一瞬间的悲伤
爱一瞬间的悲伤 2020-12-29 04:58
  • I can run gradle from a command line to see its version.
  • I can run, compile and debug a grails app in IntelliJ (version 10.0 or version 10.2)
  • I insta
5条回答
  •  小鲜肉
    小鲜肉 (楼主)
    2020-12-29 05:40

    I think this error might be caused by an install bug with IntelliJ IDEA. When I look at the installed folder referred to in the error message on my filesystem:

    C:\Program Files (x86)\JetBrains\IntelliJ IDEA 10.0\jre
    

    I see the jre folder but then another jre folder beneath that one which contains the bin and lib folders of the jre:

    jre
        jre
            bin
            lib
    

    I copied bin and lib up a level into the first jre folder, and that fixed this error for me.

提交回复
热议问题