I'm working with Idea 13 Ultimate and groovy plugin, but when I'm trying to use @Grab to add third party libraries I can't run my script in Idea, it fails with "ClassNotFound" exception. At the same time it works OK when I run it from command line.
So it seems to me that Idea doesn't work with $HOME/.groovy directory for some reason. Could you please advise how can I solve this issue?
Moving this from comments. To make IDEA see the jars used by Groovy Grape, put your caret on the @Grab annotation in your code, press Alt+Enter and choose "Grab dependencies".
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.