-
-
Notifications
You must be signed in to change notification settings - Fork 632
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
Installing jdk with sdkman keeps reporting errors #1285
Comments
Do you have |
please remove downloaded package, redownload will be ok. |
i think this not check the package whether download complete . |
code just run install script, so failed. |
Also getting errors trying to install java, guess the download is incomplete. $ sdk install java 22.0.1-tem
Downloading: java 22.0.1-tem
In progress...
################################################################################################ 100.0%
Repackaging Java 22.0.1-tem...
/usr/bin/env: ‘zip’: No such file or directory
Done repackaging...
unzip: cannot find or open /home/yadav/.sdkman/tmp/java-22.0.1-tem.zip, /home/yadav/.sdkman/tmp/java-22.0.1-tem.zip.zip or /home/yadav/.sdkman/tmp/java-22.0.1-tem.zip.ZIP.
Stop! The archive was corrupt and has been removed! Please try installing again.
[Sat Jun 22 21:17:38][yadav@source]:~ $ sdk list java
[Sat Jun 22 21:19:02][yadav@source]:~
$ sdk install java 22.0.1-oracle
Downloading: java 22.0.1-oracle
In progress...
################################################################################################ 100.0%
Repackaging Java 22.0.1-oracle...
/usr/bin/env: ‘zip’: No such file or directory
Done repackaging...
unzip: cannot find or open /home/yadav/.sdkman/tmp/java-22.0.1-oracle.zip, /home/yadav/.sdkman/tmp/java-22.0.1-oracle.zip.zip or /home/yadav/.sdkman/tmp/java-22.0.1-oracle.zip.ZIP.
Stop! The archive was corrupt and has been removed! Please try installing again. Download folder$ ls -l /home/yadav/.sdkman/tmp/
total 20
-rw-r--r-- 1 yadav yadav 931 Jun 22 21:19 hook_post_java_22.0.1-oracle.sh
-rw-r--r-- 1 yadav yadav 922 Jun 22 21:19 hook_post_java_22.0.1-tem.sh
-rw-r--r-- 1 yadav yadav 534 Jun 22 21:19 java-22.0.1-oracle.headers.tmp
-rw-r--r-- 1 yadav yadav 5157 Jun 22 21:19 java-22.0.1-tem.headers.tmp |
@wxywizard @rajinder-yadav I had the same issue as you do (MacOS Ventura in my case). |
Hi @kstgrd, I'm struggling to see why you need to set the stack size to unlimited to fix these problems. One of the above cases seems due to bad data in out database, the other seems like an issue with zip not installed on the machine. |
Hi @marc0der . I run into a similar issue, I'm on a Mac (Sonoma 14.7.1) using ZSH (no frameworks, pure, raw zsh) and tried installing sdkman! in a custom directory (instead of ~/.sdkman).
I tried the zip commad suggested as follows (substituted -q(uiet) by -v(erbose) :
I can't find any solution in other issues or posts anywhere. Thank you in advance. |
Just as a side note: I have just uninstalled sdkman and reinstalled it using the default location (no "export SDKMAN_DIR") and it works this time. Installing java ran ok, no errors. So it seems the issue, at least in my situation, was with the custom directory. Funny thing is that it was under my user dir, just like the default one, so there should be no issues with permissions. |
Question
When I use rockylinux version 9 and use sdkman to install java, it reports the same error no matter what version is installed, I don't know why this problem occurs, and I am asking for the community's help, the specific error message and system version information is in the following screenshot.
System info
The text was updated successfully, but these errors were encountered: