Questions tagged [sdkman]

SDKMAN! is a tool for managing parallel versions of multiple Software Development Kits on most Unix based systems. It provides a convenient Command Line Interface (CLI) and API for installing, switching, removing and listing Candidates. Formerly known as GVM the Groovy enVironment Manager.

From sdkman.io:

SDKMAN! is a tool for managing parallel versions of multiple Software Development Kits on most Unix based systems. It provides a convenient Command Line Interface (CLI) and API for installing, switching, removing and listing Candidates. Formerly known as the Groovy enVironment Manager, it was inspired by the very useful and tools, used at large by the Ruby community.

GitHub: https://github.com/sdkman/sdkman-cli

121 questions
12
votes
1 answer

How do I list all versions of Java available for install in sdkman?

On a newly installed Ubuntu 18.04 box with sdkman I only get a subset of the java versions available on my other (old) Ubuntu 18.04 box. Both are running SDKMAN 5.7.3+337. What am I missing? I checked the sdkman docs, but could not find som obvious…
Anders
  • 183
  • 1
  • 1
  • 8
8
votes
2 answers

Where is the `sdk` command installed for sdkman

I just installed sdkman for installing grails on my machine (MacOS). When I run which sdk command I don't get any output. But when I run the sdk help command the shell is able to resolve it and give the right output. I checked all the directories…
Amrish
  • 679
  • 1
  • 8
  • 20
8
votes
2 answers

sdkman available to root user but not to other users

I installed sdkman as a root user using curl in CentOS 6.8 I installed Grails using sdkman and it is only available to the root user. Do I need to install sdkman as other regular user in order for Grails to work or is there a way to use Grails I…
monty_bean
  • 494
  • 5
  • 25
7
votes
3 answers

Can I install a previous version of a JDK with sdkman?

sdkman lists the current Corretto JDK version (8.282.08.1-amzn) and I can install that. Is it possible to install a previous version (8.275.01.1) with sdkman as well? If so, how can I list the previous versions available?
P.J.Meisch
  • 18,013
  • 6
  • 50
  • 66
7
votes
4 answers

sdkman on cygwin can't install

I'm setting up a new machine and installing sdkman on Cygwin to install Java. I had this exact setup working on my previous machine, also Win 10. Installed Cygwin, and required for sdkman, installed zip and unzip packages. Now I'm getting the…
Philip
  • 697
  • 7
  • 20
6
votes
2 answers

Not set Java version for specific folder and all subfolders

Linux Mint 20 Java 8, 11. SDKMAN: 5.12.14 Current Java version = 11 I have folder MyProject with 45 subfolders: MyProject - mySubfolder1 - mySubfolder2 -... - mySubfolder45 I want to set specific Java version to 8 to folder MyProject and all its 45…
Alexei
  • 14,350
  • 37
  • 121
  • 240
6
votes
2 answers

Can't uninstall SDKMAN on macOS

So I want to uninstall SDKMAN on my macOS, I was following this step for SDKMAN uninstallation instruction, rm -rf ~/.sdkman, but it's doesn't work for my mac rm -rf ~/.sdkman and when I type SDK version on my macOS console my uninstallation step…
user13985695
6
votes
1 answer

How noninteractive install latest java version by sdkman?

In our CI/CD environment we have couple docker images with preinstalled java by sdkman. But there is one small problem, version number changes very often and our docker build fails because of missing package version. Eg.: sdk install java…
5
votes
1 answer

Using previous JDK version which is not available via SDKMAN but from adoptopenjdk

I have the following situation: $ sdk java list AdoptOpenJDK | | 15.0.1.j9 | adpt | | 15.0.1.j9-adpt | | 15.0.1.hs | adpt | installed | 15.0.1.hs-adpt | | 14.0.2.j9 |…
khmarbaise
  • 92,914
  • 28
  • 189
  • 235
5
votes
1 answer

Why won't sdkman change my default java version?

This problem persisted after updating and upgrading sdkman, deleting .sdkman and reinstalling it, and uninstalling java packages and reinstalling them. me@myMachine myProject $ sdk default java 8.0.252.hs-adpt Default java version set to…
jMan
  • 587
  • 1
  • 8
  • 23
5
votes
1 answer

switch to system version with sdkman

With nvm you can go like this to fall back on the system version if installed: nvm use system Is there anything similar for sdkman? either to turn off a single application (something like sdk use ant system or turn off sdkman completely
Alex028502
  • 3,486
  • 2
  • 23
  • 50
3
votes
0 answers

Install sdkman on Amazon Linux 2: version `GLIBC_2.28' not found

I'm trying to install sdkman on an Amazon Linux 2 AMI (I have no choice, we must use some blessed/patched AMIs). I follow the steps: sudo curl -s "https://get.sdkman.io" | bash source "$HOME/.sdkman/bin/sdkman-init.sh" No errors so far. But then I…
Pierre
  • 2,335
  • 22
  • 40
3
votes
2 answers

How to run SDKMAN on shell script

I am trying to run sdkman on a shell script that I call run.sh. This is what the inside of the shell script looks like: sdk use java 8.0.302-open When I run the command in a terminal, it works. But when I run it in a shell script, I get this…
Falk Oscar
  • 51
  • 2
3
votes
1 answer

sdkman does not provide more java candidates on Apple Silicon M1

I'm trying to install a different version of java amzn on macOS Apple Silicon M1 but it's no other candidate available than the listed ones: Would it be possible to get extra candidates?
Jeff Pal
  • 1,519
  • 1
  • 17
  • 28
3
votes
2 answers

How to set sdkman and JDK installed by sdkman path in Ubuntu permanently

I follow to this https://sdkman.io/install to install install sdkman. After instillation all worked nice. I can see correct version by sdk version. Also I can install various Java version. But all are for the correct shell session. As soon as I…
Masi Boo
  • 635
  • 1
  • 10
  • 24
1
2
3
8 9