Skip to content

JDK installation fails without error #1053

Description

@MoritzLost

Describe the bug

Clean bubblewrap install via npm. Running any bubblewrap command prompts for the JDK. Replying Yes when asked whether bubblewrap should install the JDK, I see the download bar followed by the Decompressing message. But then the command just exists. Running the same command again results in the same prompt to install the JDK and behavior:

$ bubblewrap doctor
,-----.        ,--.  ,--.  ,--.
|  |) /_,--.,--|  |-.|  |-.|  |,---.,--.   ,--,--.--.,--,--.,---.
|  .-.  |  ||  | .-. | .-. |  | .-. |  |.'.|  |  .--' ,-.  | .-. |
|  '--' '  ''  | `-' | `-' |  \   --|   .'.   |  |  \ '-'  | '-' '
`------' `----' `---' `---'`--'`----'--'   '--`--'   `--`--|  |-'
                                                           `--'    
? Do you want Bubblewrap to install the JDK (recommended)?
  (Enter "No" to use your own JDK 17 installation) Yes
Downloading JDK 17 to /Users/moritz/.bubblewrap/jdk
Downloading the JDK 17 Sources...
 >> [████████████████████████████████████████] 100% | 174793k of 174793k
Decompressing the JDK 17 Sources...

$ bubblewrap doctor
,-----.        ,--.  ,--.  ,--.
|  |) /_,--.,--|  |-.|  |-.|  |,---.,--.   ,--,--.--.,--,--.,---.
|  .-.  |  ||  | .-. | .-. |  | .-. |  |.'.|  |  .--' ,-.  | .-. |
|  '--' '  ''  | `-' | `-' |  \   --|   .'.   |  |  \ '-'  | '-' '
`------' `----' `---' `---'`--'`----'--'   '--`--'   `--`--|  |-'
                                                           `--'    
? Do you want Bubblewrap to install the JDK (recommended)?
  (Enter "No" to use your own JDK 17 installation) (Y/n) 

The command exits with code 0, so there's no error. It just doesn't work.

The same error also occurs when bubblewrap tries to install the Android SDK.

To Reproduce

  1. npm i -g @bubblewrap/cli
  2. bubblewrap doctor
  3. Answer Y when prompted for the JDK

Expected behavior

The JDK installation via bubblewrap should finish correctly. After that, the JDK installed by bubblewrap should be detected and used automatically, or when prompted.

Desktop (please complete the following information):

  • OS: macOS 26.5

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions