At the beginning of October, the SQL Server 2017 was officially released. A few days later after the official announcement I wanted to install it in my virtual environment to take a look at newest features. During SQL Server 2017 installation I faced “Oracle JRE 7 Update 51 (64-bit) or higher is required for Polybase” error and I was not able to proceed.
This computer does not have the Oracle Java SE Runtime Environment Version 7 Update 51 (64-bit) or higher installed. The Oracle Java SE Runtime Environment is software provided by a third party. Microsoft grants you no rights for such third-party software. You are responsible for and must separately locate, read and accept applicable third-party license terms. To continue, download the Oracle SE Java Runtime Environment from https://go.microsoft.com/fwlink/?LinkId=526030.
It is a known error since SQL Server 2016 introduced Polybase feature. If you don’t want to use Polybase you can easily fix it by unchecking the proper checkbox in Feature Selection window.
That will reduce the number of rules to check.
However, I wanted to install Polybase so I had to install Oracle JRE. According to the error message, it needs to be JRE 7 Update 51 or newer. Currently, the newest available version is JRE 9.0.1 and can be downloaded here: http://www.oracle.com/technetwork/java/javase/downloads/jre9-downloads-3848532.html. Installation is very easy.
To my huge surprise, it didn’t help.
To solve this issue I decided to install JRE version 8.
It solved my problem.
Apparently, there is a bug in SQL Server 2017 installer. Because of it, the installer doesn’t recognize JRE 9. Fortunately, there is a very simple workaround. To install Polybase you have to install JRE 8. This will pass all checks and you will be able to continue with your installation.
If you found it annoying then you can upvote this connect item: https://connect.microsoft.com/SQLServer/Feedback/Details/3141825
Connect was moved to Azur User Voice. Here you can find migrated connect item: https://feedback.azure.com/forums/908035-sql-server/suggestions/32899312-sql-server-2017-installer-should-recognize-java-jd