Java Jdk 8U15210/10/2021
Don't forget to accept the license agreement. In my case, my machine is running on Ubuntu 14.04 64-bit, so I need "Linux x64".Copy the link that takes you to the download you need. Today is the day you'll learn to fix your java installer for your own needs.For the purposes of this tutorial, we'll assume you want Java 8u181 and you had previously installed Java 8u171 (because that's what I have).First, I need you to go to Java's JDK Downloads page (For Java8, go here, click the "Downloads" tab, and then the "Java SE 8u181" link).Now, look up the JDK version you need based on your machine. Basically, the problem seems to be that there is a new version of java and the installer wasn't updated to reference it.If your machine is a Linux x64 with an AMD64 processor, you need the latest Java8 version, and you previously installed version 8u212, this can be easily fixed by running these commands (Credit for the original version goes to g1zmo2): cd /var/lib/dpkg/infoAnd then running the JDK 8 installer commands like you normally would =): sudo apt-get updateSudo apt-get install oracle-java8-installerSudo apt-get install oracle-java8-set-defaultIf your machine is not a Linux x64 AMD64, your previous version wasn't 8u212 or you are looking for Java 9, well, you are in luck.Copy the value, and keep it safe we'll need it later too.Now, open a terminal on your machine and enter the folder where the java installer file are: cd /var/lib/dpkg/infoGreat, now execute this: sudo grep -color -P "JAVA_VERSION=+" oracle-java8-installer.configThe output should look something like this:Ok, now we need to update the download url. Just look for the sha256 that fits your machine.Again, my machine is a "Linux x64" so I need 1845567095bfbfebd42ed0d09397939796d05456290fb20a83c476ba09f991d3, like in the picture. Keep it safe we'll need it later.Now look up the checksum link in the page and click it.This should take you to a plain html table page. For the purposes of this tutorial, we only need the link's path.If armv8l, arm64 or aarch64, grab the fourth one. If armv7l or armv6l, grab the third one. If your architecture is i386, i586 or i686, grab the first one. How do I know this? Well, I read the source code ( sudo gedit oracle-java8-installer.config), so trust me on this: This means I should grab the second link. So please execute this command: sudo grep -color -P 'SHA256SUM_TGZ="+"' oracle-java8-installer.configThis prints out a couple different SHA256:But how do we know which of the current Java hashes to replace? Well, we need to find out our processor's architecture: dpkg -print-architectureIn my case, this will output amd64.Sudo apt-get install apache2Move the file you just download to the /var/cd /var/lib/dpkg/info Go to the official website to download the jdk-8u211-linux-x64.tar.gz( here), you need to register an account before you download the file.Install apache2 to build a Http server. This took longer to type that I thought at first).For the lastest version(jdk-8u211-linux-x64.tar.gz), you may get a HTTP '401 Authorization Required'.My solution to this problem is as follows. We are ready to call the java installer, yay.
![]() Java Jdk 8U152 Download You Need
0 Comments
Leave a Reply.AuthorMatt ArchivesCategories |