Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: bal cli commands not working anymore after 2022.10.0 update #363

Open
Shadow-Devil opened this issue Aug 25, 2024 · 2 comments
Open
Labels

Comments

@Shadow-Devil
Copy link

Description

On my Ubuntu (22.04) Server I updated Ballerina from 2021.8.2 to version 2021.10.0 via bal dist update.
After the update, any bal command gives the following error:

bal build
/home/ubuntu/ballerina/bin/bal: line 84: /home/ubuntu/ballerina/bin/../dependencies/jdk-17.0.7+7-jre/bin/java: cannot execute binary file: Exec format error
/home/ubuntu/ballerina/bin/../distributions/ballerina-2201.10.0/bin/./bal: line 294: /home/ubuntu/ballerina/bin/../distributions/ballerina-2201.10.0/../../dependencies/jdk-17.0.7+7-jre/bin/java: cannot execute binary file: Exec format error

Steps to Reproduce

Update to version 2021.10.0 in Ubuntu and run bal build in a project folder.

Affected Version(s)

2021.10.0

OS, DB, other environment details and versions

Ubuntu 22.04
Ballerina 2021.10.0

Related area

-> Update Tool

Related issue(s) (optional)

No response

Suggested label(s) (optional)

No response

Suggested assignee(s) (optional)

No response

@ballerina-bot ballerina-bot transferred this issue from ballerina-platform/ballerina-lang Aug 25, 2024
@Shadow-Devil Shadow-Devil changed the title [Bug]: bal tool does not work anymore after 2022.10.0 update [Bug]: bal cli commands not working anymore after 2022.10.0 update Aug 25, 2024
@Shadow-Devil
Copy link
Author

I fixed it for myself via renaming the ballerina/dependencies/jdk-17.0.7+7-jre folder.
It is now probably using the jdk installed at JAVA_HOME instead of the bundled one.

@keizer619
Copy link
Member

Thanks for reporting we will look into this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: No status
Development

No branches or pull requests

2 participants