I am not able to create groovy project


I am not able to create groovy project



I have used different approaches-



My system has jdk 1.8.1.



I tried installing Eclipse (oxygen and photon), Java programs are running fine but when I am installing groovy plugin from Help -> Install new software, it's not running.



Then I tried installing different IDE that is NetBeans, here also I am not able to create project.



Error:


Warning |
Unrecognized flag: non-interactive.
Error |
Specify an application name or use --inplace to create an application in the current directory





You need to provide more information on what you did in Eclipse, and what the exact problem is with setting up Groovy. Just saying "it's not running" is insufficient.
– skomisa
Jul 1 at 18:28





Also, since you are asking two distinct questions in the post above it would be appropriate to post your problem with Eclipse in a new question.
– skomisa
Jul 1 at 18:51




2 Answers
2



Do you mean grails application ?
Best way to create a grails application is using a terminal console:


grails


grails



grails create-app --inplace



and after try to import in your IDE



see http://docs.grails.org/3.1.1/ref/Command%20Line/create-app.html



To create a Groovy/Grails project in NetBeans 8.2 you must first activate the Groovy plugin:



Tools > Plugins > Installed > select and check the Groovy plugin entry > Click Activate



After activation the Active icon for the Groovy entry should be a green circle with a white check mark:



groovyActivation



To use Grails:



addGrails



After that you can create a Groovy project using the Project wizard:



File > New Project... > Groovy



groovyProject



Notes:



With NetBeans 8.2 you only have to activate the Groovy plugin, but with Apache NetBeans 9.0 RC1 you must first install it: Tools > Plugins > Available Plugins > Groovy and Grails



See the NetBeans documentation Introduction to Groovy for more information on using Groovy.



File > New Project... > Samples > Groovy



groovySamples



Creating those projects would be useful for confirming that your environment is set up correctly.





Thanks for detailed answer..I have net beans 8.2 But I am not getting Groovy option, instead of that I am getting option "Groovy and Grails"..and under Tools- Options- Miscellaneous there is a option of Groovy Doc , in that I have put 'F:officegroovy-2.4.15html' and under Grails Home :, I have put 'F:officegrails-3.3.6' . When I created project I get this error - Problem: The project uses a class library called "swing-layout", but this class library was not found. Solution: Click Resolve to open the Library Manager and create a new class library called "swing-layout".
– Rohan Bhandari
Jul 2 at 8:03






By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Popular posts from this blog

List of Kim Possible characters

Audio Livestreaming with Python & Flask

NSwag: Generate C# Client from multiple Versions of an API