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

4

22

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?

Bullhorn answered 21/2, 2016 at 2:19 Comment(4)
Normally it should be under /users/<username>/.sdkman/groovy/current or /users/<username>/.sdkman/groovy/<version>. Mark that .sdkman might not be visible in IntelliJ by default, but tracing through the directory structure should be possible.Gamboa
@Gamboa you are right. It is not visible. It is in /Users/Ramisetti/.sdkman/candidates/groovy. Thank you.Bullhorn
Whenever you have this problem, use the which shell command. which groovy will tell you the answerShippen
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/<username>/.sdkman/candidates/groovy/<version> for the specific version your project needs.Lanettelaney
L
25

I ran into similar issue. By using

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

or

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

worked for me.

Landloper answered 13/9, 2016 at 16:0 Comment(2)
<cmd><shift><.> allows you to pick the hidden folder in the open dialog box.Salpinx
CMD+SHIFT+G also appears to work and was the solution recommended by JetBrains.Men
P
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 
Psychokinesis answered 29/1, 2018 at 0:25 Comment(1)
@Downvoter, any helpful explanation to improve the answer?Psychokinesis
D
6

Just run $ which groovy after have it installed.

Debbidebbie answered 31/5, 2017 at 3:57 Comment(0)
D
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.

Deadeye answered 15/1, 2018 at 11:2 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.