Why I can't create new grails application in Netbeans 8.2?

后端 未结 1 477
無奈伤痛
無奈伤痛 2021-01-16 14:31

OS: Windows 10
JDK: jdk1.8.0_65
IDE: Netbeans 8.2

Steps I had taken:
1. I had inst

相关标签:
1条回答
  • 2021-01-16 15:03

    I get exactly the same error as you when creating a Grails 3.3.5 project in NetBeans 8.2 on Windows 10. This is because of a longstanding bug in NetBeans: Bug 258407 - Error when creating a Grails 3.1.x project, which also impacts more recent releases of Grails.

    Although that bug has Status: VERIFIED FIXED, unfortunately the fix was not applied to release 8.2 itself ("...this bug is fixed in development builds not 8.2"). You have two possible workarounds:

    • Install a DEV build of NetBeans 8.x which contains the fix.
    • Install the beta release of NetBeans 9.0 which contains the fix.

    Option 1: Using a DEV release of NetBeans

    • Download the most recent nightly Dev build of NetBeans 8.2.
    • Activate Groovy and locate Grails 3.3.5 in the same way as you did on NetBeans 8.2.
    • You can then successfully create your Grails application using the Groovy > Grails Application project wizard, and run it:

    Option 2: Using a beta release of NetBeans 9.

    • Download and unzip NetBeans 9 beta from the Apache NetBeans 9.0 Beta web site.
    • Start NetBeans 9 beta and install the Groovy/Grails plugin:

    • Locate Grails 3.3.5 in the same way as you did on NetBeans 8.2 (Tools > Options > Miscellaneous > Groovy > Grails Home).
    • You can then successfully create your Grails application using the Groovy > Grails Application project wizard, and run it:

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