Where to find groovy library on intellij(mac) when installed groovy through sdkman

15.6k Views Asked by At

I installed groovy through sdkman on mac. When i try to create a new groovy project in intellij, it asks for groovy library location. Where can i find the installed groovy?

4

There are 4 best solutions below

0
On

Just run $ which groovy after have it installed.

0
On

You may not be able to find groovy path with which command. After installation of sdkman on linux-like systems Mac OSX, Linux, Cygwin, Solaris and FreeBSD,
First, run $ source "$HOME/.sdkman/bin/sdkman-init.sh", then you will be able to access the installed development kits.

Namely, if you type 'which groovy' it should show the path, and you can invoke other SDK commands.

2
On

I ran into similar issue. By using

/Users/<username/.sdkman/candidates/groovy/current 

or

/Users/<username/.sdkman/candidates/groovy/<version>

worked for me.

1
On

Adding the answer that solved my problem (thanks to ThomasW comment)

When dialog box is opened you can click CMDSHIFT. and this allows you to pick the hidden folder in the open dialog box.

enter image description here

Then you can use:

/Users/<username>/.sdkman/candidates/groovy/current