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

it would be nice to use it in Termux. #1253

Open
dhuux opened this issue Nov 16, 2023 · 3 comments
Open

it would be nice to use it in Termux. #1253

dhuux opened this issue Nov 16, 2023 · 3 comments

Comments

@dhuux
Copy link

dhuux commented Nov 16, 2023

since we can run linux/aarch64 binaries on termux now because of glibc for Termux as long as there are no hardcoded paths i tried to use sdkman for installing openjdk-21 but it fails to extract the zip file after downloading completes. it seems sdkman is expecting linux environment for the shell. i probably don't know what i'm saying since i have recently got into this programming world. please i need a solution. yes Termux already has bionic based openjdk-17 available but i want to use newer versions since i can run glibc based ELFs on termux.

java and sdkman versions:
Screenshot_20231116-165713_Termux

where it has failed:
Screenshot_20231116-051520_Termux

@dhuux dhuux changed the title Question: [may i have a solution for this please.] Question: may i have a solution for this please. Nov 16, 2023
@dhuux
Copy link
Author

dhuux commented Nov 16, 2023

i think it's java problem. i tested with gradle and kotlin. why only java?

@dhuux
Copy link
Author

dhuux commented Jan 8, 2024

please change /usr/bin/env tar and /usr/bin/env zip to $PREFIX/bin/env tar and $PREFIX/bin/env zip in __sdkman_post_installation_hook function. it will work both in FHS compliant and non FHS compliant environments i guess and my problem will be solved.

@dhuux
Copy link
Author

dhuux commented Jan 8, 2024

i'm not having this problem with other candidates that don't have post_installation_hook related hardcoded paths like kotlin.

Screenshot_20240108-033641_Termux

@dhuux dhuux changed the title Question: may i have a solution for this please. it would be nice to use it in Termux. Jan 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant