21

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?

Rax
  • 563
  • 1
  • 3
  • 17
  • 4
    Normally it should be under `/users//.sdkman/groovy/current` or `/users//.sdkman/groovy/`. Mark that `.sdkman` might not be visible in IntelliJ by default, but tracing through the directory structure should be possible. – dmahapatro Feb 21 '16 at 04:35
  • @dmahapatro you are right. It is not visible. It is in /Users/Ramisetti/.sdkman/candidates/groovy. Thank you. – Rax Feb 21 '16 at 05:45
  • 7
    Whenever you have this problem, use the `which` shell command. `which groovy` will tell you the answer – tim_yates Feb 21 '16 at 08:44
  • 2
    I suggest you don't use `current` in the project config in IntelliJ as that will change which GDK it points to over time. Rather use `/Users//.sdkman/candidates/groovy/` for the specific version your project needs. – Todd W Crone Feb 21 '16 at 22:15

4 Answers4

25

I ran into similar issue. By using

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

or

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

worked for me.

KneeLess
  • 551
  • 6
  • 9
15

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 
Federico Piazza
  • 30,085
  • 15
  • 87
  • 123
6

Just run $ which groovy after have it installed.

0

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.

Memin
  • 3,788
  • 30
  • 31