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.

Filter by
Sorted by
Tagged with
1 vote
0 answers
24 views

Can't install scala and sbt using Ansible

I aim to install Scala and SBT on a GCP VM running Ubuntu 20.04, utilizing Ansible for automation. Despite multiple attempts, I haven't managed to achieve this goal First Attempt: Using SDKMAN ...
SkogensKonung's user avatar
0 votes
0 answers
45 views

Install SDKMAN on Ubuntu Server through Ansible Playbook

I've to automate installation of new packages on servers using Ansible. I need some specific versions of packages which can be installed easily using SDKMAN. Installing SDKMAN is also simple, just run ...
Amartya Sinha's user avatar
-1 votes
1 answer
97 views

java_home not detecting jdks installed through sdkman

I installed java jdk 20 and jdk 17 through SDKMAN. I want to be able to do something like this. alias java17="export JAVA_HOME=`/usr/libexec/java_home -v 17`; java -version" But when i do ...
defaultacc's user avatar
1 vote
0 answers
41 views

How to get all versions (including invisible ones) in SDKMAN

SDKMan has many more versions then that are shown when doing a 'sdk list'. I would like to see those as well, so I can install older versions. SDKMan's API seems to be selective in what it shows, but ...
tbeernot's user avatar
  • 2,473
0 votes
1 answer
155 views

nativeCompile task fails gu tool wasn't found even if vendor set to Graal VM

I have jvm toolchain configured as follows: kotlin { jvmToolchain { languageVersion.set(JavaLanguageVersion.of(17)) vendor.set(GRAAL_VM) } } My Gradle config: However, if I ...
pixel's user avatar
  • 25k
1 vote
1 answer
240 views

How to make /usr/libexec/java_home find JDK installed using SDKMAN on MacOS?

I am making iOS apps in Kotlin, which relies on having a Script Build Phase calling Gradle from XCode. With a JDK installed using SDKMAN, it does not work and produces this error: The operation couldn’...
Ribesg's user avatar
  • 358
3 votes
0 answers
576 views

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 "$...
Pierre's user avatar
  • 2,375
0 votes
1 answer
97 views

Unrecognized VM option 'AggressiveOpts' when installing quarkus in sdkman

I am using sdkman since I have to work with different versions of java. Using sdkman I installed quarkus version 2.11.1, however whenever I do every command related to quarkus like: quarkus --version ...
Diego Alejandro Gómez Pardo's user avatar
1 vote
0 answers
63 views

The .sdkman/candidates/java/current/ folder cacerts file is not working for certs, but the .sdkman/candidates/java/[version]/ folder does

I am trying to add some certs to my java cacerts file, but am consistently getting the error PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid ...
Reed M's user avatar
  • 87
0 votes
1 answer
130 views

Building a Native SDKMAN Tool for Windows using Shims: Learning from the Experience of Scoop and Chocolatey

I am embarking on a project to create a Windows-native version of SDKMAN that utilizes shims to manage software installations and updates. To get started, I would like to learn from the experience of ...
Steve-Buglione's user avatar
0 votes
2 answers
87 views

Installed java disappears after reboot on raspian

I have a problem with the installation of java (jdk17) on raspian (Raspian 11 (bullseye). I need jdk17 but raspian packagemanager only want to install jdk11 so i decided to use sdkman. Using the ...
AlwaysBeginner's user avatar
0 votes
0 answers
33 views

FAIL - Application already exists at path [/]

I am using https://sdkman.io/ in my Manjaro 22 with Plasma. After compiling my java application with Netbeans I am getting the following error: 30-Jan-2023 13:40:44.410 SEVERE [Catalina-utility-1] ...
learning-man's user avatar
0 votes
1 answer
253 views

I can't install lombok in Spring Tool Suite 4 ide on Ubuntu

I'm trying to install lombok in the Spring Tool Suite 4 ide which is in the /opt folder on Ubuntu. The command: java -jar lombok.jar does not work because the opt folder requires privileges. I tried ...
Clauber Martins's user avatar
2 votes
0 answers
325 views

sdkman and $PATH in Linux

After installing sdkman and let it install java temurin 8 and 17 and setting use to java 8, $JAVA_HOME nicely pointed to the current candidate. But $PATH and java -version still point to the original /...
Ralph Bloch's user avatar
1 vote
1 answer
331 views

How to solve gradle installation error using sdkman

Has anyone experienced this problem? When trying to install gradle 4.4 the following error is displayed: user@test:~$ sdk install gradle 4.4 Downloading: gradle 4.4 In progress... Warning: Failed to ...
Giovane's user avatar
  • 11
1 vote
0 answers
320 views

SDKMAN not showing previously installed java

In my ubuntu 18.04 I have preinstalled oracle java 8 and adoptium java 17. After installing SDKMAN when I try to find existing java, it shows no version is installed. $ sdk current java Not using any ...
mahfuj asif's user avatar
  • 1,701
0 votes
1 answer
201 views

Why is "shadow-cljs cljs-repl app" still working while cider-jack-in-cljs is retrieving an error?

I have been using Clojure, ClojureScript, lein, shadow-cljs, re-frame, reagent, Emacs, and CIDER to work on a Clojure/ClojureScript dynamic web app project. Usually, I build the project by executing ...
Pedro Delfino's user avatar
2 votes
2 answers
633 views

sdkman! How to manage pre-existing JDK?

I wanted to try Java 19 and have easy switching back to the Java 17 that I have already installed. So, I installed sdkman but it knows nothing of the previous Java. Found the "install local" ...
John Knight's user avatar
0 votes
0 answers
374 views

How to use sdkman in Jenkins Scripted Pipeline

I would like to activate a specific set of tools via SDKMAN in my scripted Jenkinsfile pipeline. Basically I would like to do node("sdkman && mvn386") { sh "sdk use maven 3....
towi's user avatar
  • 21.6k
1 vote
1 answer
369 views

Why does sdkman not update Java SDK version for project subdirectories?

After setting the Java version for a project directory via the .sdkmanenv file, the Java versions only gets updated when navigating to the root directory. Is this just expected behavior? Does the ....
Brockenbrough's user avatar
0 votes
1 answer
168 views

How to use an SDKMAN jdk for window applications on mac

I've recently installed a fresh Mac OS and installed java using SDKMAN but no windows apps recognize the jdk throwing a java not installed error. Trying to install NetBeans using the .pkg throws a ...
JuanKB1024's user avatar
3 votes
2 answers
591 views

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 ...
Falk Oscar's user avatar
1 vote
0 answers
1k views

curl: (7) Failed to connect to get.sdkman.io port 443: Network is unreachable

I am trying to install sdkman on my mac. I simply copy and paste the curl command that is given on the website "curl -s "https://get.sdkman.io" | bash" but when i do I keep getting ...
Emmanuel Tejeda's user avatar
0 votes
1 answer
2k views

How do I un-install a specific open jdk 1.8.0_322 which I suspect was installed using homebrew. All my trials have failed

I need to un install my JDK 1.8 version from my Mac 12.2.1 Montere. However much I try I could not get rid of it. When I run $ java -version, I get openjdk version "1.8.0_322" OpenJDK ...
PraNuta's user avatar
  • 629
3 votes
1 answer
5k views

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's user avatar
  • 1,549
0 votes
2 answers
2k views

sdkman maven not detecting sdkman java

Here are the java home and path configs. Not sure why maven is not detecting the java home correctly. Installed java 11 and maven both via sdkman on MacBook. Thanks. m-c02yw:~ vn$ echo $JAVA_HOME /...
Ruby9191's user avatar
  • 113
0 votes
1 answer
433 views

Raspberry Pi not able to find java installation

I am trying to install Java 17 on my raspberry pi with SDK man. After the installation succeeds, I am not able to use java -version in the terminal and I get this error: -bash: /home/pi/.sdkman/...
Staubtornado's user avatar
1 vote
1 answer
473 views

mvn dependency:tree hangs trying to read repository

$ mvn --version Apache Maven 3.8.4 (9b656c72d54e5bacbed989b64718c159fe39b537) Maven home: /home/redacted/.sdkman/candidates/maven/current Java version: 17.0.1, vendor: Azul Systems, Inc., runtime: ...
axiopisty's user avatar
  • 4,982
1 vote
2 answers
1k views

How do I set up a custom JDK build in sdkman?

I was able to play around with the latest early access binary for Project Loom by downloading the file from http://jdk.java.net/loom/, extracting it (I had a directory called jdk-18), setting the ...
Matt Welke's user avatar
  • 1,461
1 vote
2 answers
767 views

How to pre-install sbt on an AWS EC2 instance (via user data)?

What I tried to far without success inside the AWS EC2 user data section: #!/bin/bash sudo curl -s "https://get.sdkman.io" | bash #!/bin/bash sudo curl --output-dir "/home/ec2-user/...
MJey's user avatar
  • 345
6 votes
2 answers
600 views

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 ...
Alexei's user avatar
  • 14.4k
1 vote
1 answer
83 views

How can I reflectively get parameter names for a method included with Java SE?

I'm looking to create some code designed for static imports based on classes in Java SE 8 (specifically, with regards to threeten-extra#166). As a first pass, I'm automatically generating the Java ...
M. Justin's user avatar
  • 14.9k
3 votes
2 answers
3k views

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 ...
Masi Boo's user avatar
  • 655
3 votes
1 answer
2k views

Does SDKMAN! install JRE only or also JDK?

I'm trying to use VisualVM but I'm getting the following error: You are running VisualVM using Java Runtime Environment (JRE) I'm using SDKMAN! to manage my Java versions What should I do to make ...
IsaacLevon's user avatar
  • 2,300
0 votes
1 answer
349 views

How to use system.d service with SDKMan

I am trying to install Sonatype Nexus 3 as a service via system.d and it fails due to INSTALL4J_JAVA_HOME not being set (or at least, so claims systemctl). I use SDKMan! (http://sdkman.io) to manage ...
Byron Lagrone's user avatar
2 votes
1 answer
4k views

sdkman on OSX can neither install nor uninstall Java 1.8

Running OSX 10.15.7, sdkman 5.9.1+575. sdkman seems to have gotten into a bad state where it thinks Java 1.8 both is and is not installed. $ sdk uninstall java 1.8.0 /Library/Java/JavaVirtualMachines/...
Dan's user avatar
  • 2,962
0 votes
0 answers
733 views

Gradle not working after installing from sdkman on mac

Hi I’m having an issue with my gradle installation on my Mac. I followed all the steps to get gradle 5.6.4 onto my machine using SDKMAN! I wanted to verify that I was actually installed by checking ...
HK Productions's user avatar
8 votes
3 answers
4k views

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 ...
P.J.Meisch's user avatar
  • 18.2k
0 votes
0 answers
20 views

InteliJ Idea and OS X use different Java directories [duplicate]

I've installed "SDK man" to use OpenJDK distributes. I set 'java_home' as my /.sdkman/candidates/java/current dir. But Intelij Idea uses /Library/Java/JavaVirtualMachines/jdk-15.0.2.jdk/...
Maksym Rybalkin's user avatar
0 votes
2 answers
1k views

Java JDK VScode issues

I installed java jdk using sdkman on my windows machine. I am using wsl for this purpose. However, I need to add this to my VScode and when I look at the installed jdk's available to me I only see ...
TanDev's user avatar
  • 379
1 vote
1 answer
2k views

SDKMAN local installation

For some reason beyond my comprehension, my (R&D) company is blocking sdk installation. If I visit sdk download link manually, I'll get Sorry, you don't have permission to visit this site. Website ...
xpt's user avatar
  • 20.6k
0 votes
1 answer
637 views

Gradle wrapper is refusing to download and use version 6.7.1

I have Gradle 6.2.2 running on my system (Mac) and I need it to stay on 6.2.2 for a few critical projects that I run locally. I just cloned another project, one maintained by other developers who are ...
hotmeatballsoup's user avatar
5 votes
1 answer
1k views

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-...
khmarbaise's user avatar
  • 93.3k
0 votes
1 answer
632 views

Sbt not loading the project from its current directory

When I run SBT in my Scala project that contains a build.sbt file, SBT seems to ignore it and loads the project definition from a different folder and set the current project to that different ...
ppbbc's user avatar
  • 9
0 votes
1 answer
787 views

How to run a Java Gradle project from VSCodium with the Redhat plugin?

Having installed the redhat plugin for Java on Linux: how do I now run the app: from VSCodium? From the console, the app builds and runs fine using gradle. After closing VSCodium and then restarting ...
Nicholas Saunders's user avatar
0 votes
1 answer
2k views

Unable to install sdkman on macos

I am unable to install sdkman on my macos. I referred sdkman install and Can't install sdkman on Mac OS. Still, I am missing something. Can someone please help me ? I am new to MacOS and sdkman. ...
fly.bird's user avatar
  • 111
1 vote
1 answer
1k views

How to use local jdk in SDKMAN! script

My script changes to a jdk installed with sdkman but not to a local one. How can I change into my local oracle 8 v261 jdk in a script with sdkman? The script #!/bin/bash . /usr/local/sdkman/bin/sdkman-...
Stefan Bollmann's user avatar
0 votes
1 answer
163 views

Why a MAC OS X 'terminal command' run by a Python script gives error output "command not found"?

Environment: Python 3.8 Mac OS X High Sierra 10.13.6 Problem: When I open my terminal in my macbook and I run this command: user$sdk version I get no issue and I can see version number of sdkman: ...
Gauthier Buttez's user avatar
3 votes
1 answer
5k views

Is it impossible to run Java Web Start application using "SDKMAN!"

Hello🙂 I'm not familiar with Java. I'm trying to run Java Web Start (javaws command) using SDKMAN! to use a Supermicro's legacy IPMI application. It seems that Oracle Java 8 was able to run javaws ...
shuuji3's user avatar
  • 1,232
2 votes
1 answer
3k views

Install Sdkman in an Alpine based Docker Image

I need to install Sdkman in an Alpine based docker image, but there is a problem that default shell is not Bash. Then command: source "$HOME/.sdkman/bin/sdkman-init.sh" ends with failure: /...
marosbfm's user avatar
  • 311