0

I installed groovy with GVM:

gvm install groovy

But when I say yes to the set 2.4.6 as default version, I get this error:

rm: `/c/Users/<user_name>/.sdkman/candidates/groovy/current' is a directory
ln: `/c/Users/<user_name>/.sdkman/candidates/groovy/current': cannot overwrite direc
tory

Not sure why it's trying to rm the current folder but then create a symbolic link to it. Any ideas what I'm doing wrong?

tim_yates
  • 167,322
  • 27
  • 342
  • 338
Andrew Hummel
  • 400
  • 2
  • 5
  • 22
  • Which operating system are you using? – Emmanuel Rosa Apr 22 '16 at 00:19
  • @EmmanuelRosa Windows – Andrew Hummel Apr 22 '16 at 01:54
  • 1
    I thought so. GVM/SDK Man is for *NIX operating systems. It is not for Windows. You can use Posh-GVM instead. Or, if you're feeling adventurous and want to keep using cygwin see this regading symbolic links on Windows http://stackoverflow.com/questions/3648819/how-to-make-symbolic-link-with-cygwin-in-windows-7 – Emmanuel Rosa Apr 22 '16 at 02:02

2 Answers2

0

current should be a symbolic link to the directory of your current version, not a directory itself

Looks like for some reason, it's currently a directory

Try moving current out of the way, and trying again

PS: gvm is now called sdkman and the command is sdk not gvm though gvm still currently works for historic compatibility

tim_yates
  • 167,322
  • 27
  • 342
  • 338
0

From the name it looks like you are on "MinGW" shell. sdkman cannot handle the softlinks in this environment.

Delete current directory and copy the version you want to use. This is not a groovy issue; affects all tools available under sdkman (such as lazybone, grails..)

Jayan
  • 18,003
  • 15
  • 89
  • 143