halcyon / asdf-java

A Java plugin for asdf-vm.
MIT License
466 stars 85 forks source link

Problems installing Java oracle-8.191 #41

Closed daincredibleholg closed 4 years ago

daincredibleholg commented 4 years ago

It does look like the JDK 8u191 from Oracle has moved? Here is the output I get:

asdf install java oracle-8.191
░asdf java :)░ downloading http://download.oracle.com/otn-pub/java/jdk/8u191-b12/2787e4a523244c269598db4e85c51e0c/jdk-8u191-macosx-x64.dmg
####################################################################################################################################################################################################################################### 100.0% #=O=#      #         #
curl: (22) The requested URL returned error: 404 Not Found
░asdf java :(░ asdf java failed. downloading java dist

Interestingly enough, the version oracle-8.191 is afterwards "installed", I have to uninstall it via asdf uninstall oracle-8.191 which returns gracefully with a success.

halcyon commented 4 years ago

Because Oracle regularly cut off unauthenticated access to their downloads, current versions of asdf-java do not directly support installation of Oracle versions of the JDK. Most needs can be met with the adopt-openjdk versions. You could also manually install an Oracle version of the JDK. Please make sure you have an up to date clone of the asdf-java plugin.

halcyon commented 4 years ago

Yes, I too have observed the lack of error handling for failed installations. PRs which would fix this are welcome!

halcyon commented 4 years ago

Please run asdf plugin-update java