Skip to content

Bug: Installing 22.0.2-gradle first, followed by installing maven and gradle, will fail #1489

@linghengqian

Description

@linghengqian

Bug report

  • Installing 22.0.2-gradle first, followed by installing maven and gradle, will fail.

To reproduce

  • Execute the following command in the new WSL instance of Ubuntu 24.04:
sudo apt update && sudo apt upgrade --assume-yes
sudo apt install unzip zip --assume-yes
curl -s "https://get.sdkman.io" | bash
source "$HOME/.sdkman/bin/sdkman-init.sh"
sdk install java 21.0.9-ms
sdk install java 22.0.2-graalce
sdk use java 22.0.2-graalce
sudo apt-get install build-essential zlib1g-dev --assume-yes
sdk install maven 3.9.12
sdk install gradle 9.2.1
java -version
native-image --version
mvn --version
gradle --version
  • This will result in the following error log.
lingh@DESKTOP-74D7840:~$ mvn --version
Command 'mvn' not found, but can be installed with:
sudo apt install maven
lingh@DESKTOP-74D7840:~$ gradle --version
Command 'gradle' not found, but can be installed with:
sudo apt install gradle
  • Image

System info

  • OS: Windows 11 Pro 25H2 26200.7462 and WSL 2.6.3.0
  • Shell and version:
GNU bash, version 5.2.21(1)-release (x86_64-pc-linux-gnu)
Copyright (C) 2022 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>

This is free software; you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
  • The output of sdk version:
SDKMAN!
script: 5.20.0
native: 0.7.14 (linux x86_64)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions