shyiko / jabba

(cross-platform) Java Version Manager
2.97k stars 194 forks source link

Java 1.16.0 and 1.16.0-1 can't be installed #812

Open jaigitrep159 opened 2 years ago

jaigitrep159 commented 2 years ago

While i was trying to attempt to install the latest version of java using jabba... i get this error.

I mean, i am getting a zip: not a valid zip file error.

Terminal: Windows Powershell

1.16.0-1:

Downloading 1.16.0-1 (https://download.oracle.com/otn-pub/java/jdk/16.0.1+9/7147401fd7354114ac51ef3e1328291f/jdk-16.0.1_windows-x64_bin.zip)
7073/7073
Extracting C:\Users\USER\AppData\Local\Temp\jabba-d-156579139 to C:\Users\USER\.jabba\jdk\1.16.0-1
zip: not a valid zip file

1.16.0:

Downloading 1.16.0 (https://download.oracle.com/otn-pub/java/jdk/16.0.1+9/7147401fd7354114ac51ef3e1328291f/jdk-16.0.1_windows-x64_bin.zip)
7073/7073
Extracting C:\Users\USER\AppData\Local\Temp\jabba-d-862165347 to C:\Users\USER\.jabba\jdk\1.16.0
zip: not a valid zip file

openjdk (example version: 1.13.0-2, no errors):

Downloading openjdk@1.13.0-2 (https://download.java.net/java/GA/jdk13.0.2/d4173c853231432d94f001e99d882ca7/8/GPL/openjdk-13.0.2_windows-x64_bin.zip)
195969512/195969512
Extracting C:\Users\USER\AppData\Local\Temp\jabba-d-685102755 to C:\Users\USER\.jabba\jdk\openjdk@1.13.0-2

Anyone can fix this issue?

brianrobt commented 2 years ago

I tried downloading this multiple times with Jabba, but all failed. It looks like you have to accept the OTN license in order to download archived Java versions; 1.17.0 is the current latest. Downloading the latest versions don't require you to accept the license. My guess is that you are getting the not a valid zip file error because it is attempting to download and extract a file which you are getting an Access Denied HTTP error for.

polizz commented 2 years ago

This seems to be a non-starter: ls-remote shows 1.16.0 and 1.16.0-1, which this application will not install. What other way should an install be attempted? I also tried your 1.17 and 1.18 which are not found.

brianrobt commented 2 years ago

@polizz It looks like this project is pretty dead, so it's probably not worth pursuing.