Skip to content

issue with ubuntu 24.04 arm64 and java #928

@marekaf

Description

@marekaf

Describe the bug
even if I setup java 21 in github actions,
the crowdin-cli is trying to download and setup java 17, ignoring the system java
erroring out on x64 vs arm64 mismatch

$ crowdin download translations --config ./crowdin.yaml

Downloading java runtime environment for version 17
/bin/sh: 1: /home/runner/.jdeploy/jre/17/jre/zulu17.58.25-ca-crac-jre17.0.15-linux_x64/bin/java: Exec format error
Error: Process completed with exit code 126.

Expected behavior
I expect the CLI to either detect system java OR have a way to tell it where system java is OR download the binaries for correct arch

Environment:

  • OS: Ubuntu 24.04 (seems like the same issue on 22.04 too though)
  • Github Runners: ubicloud-standard-2-arm-ubuntu-2404
  • Version crowdin/cli 4.8.0

Additional context
I'm able to install crowdin via .deb pkg and that correctly detects system java and works just fine

      - name: Setup Java 21 for Crowdin CLI
        uses: actions/setup-java@v4
        with:
          distribution: 'temurin'
          java-version: '21'

      - name: Install Crowdin CLI (system package)
        run: |
          # Install Crowdin CLI system package (uses system Java)
          wget https://artifacts.crowdin.com/repo/deb/crowdin.deb -O crowdin.deb
          sudo dpkg -i crowdin.deb

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