After upgrate to Java 8U25 from 7U67 gives "Error: Registry key has value '1.8', but '1.7' is required." (Doc ID 2288078.1)

Last updated on JULY 20, 2017

Applies to:

Java SE JDK and JRE - Version 7 and later
Information in this document applies to any platform.

Symptoms

When attempting to execute the command: java -XshowSettings:properties -version, after upgrade to Java SE 8 from 7U67, the following error occurs.

Error: Registry key 'Software\JavaSoft\Java RunTime Environment'\CurrentVersion'

has value '1.8', but '1.7' is required.
Error: could not find java.dll
Error: Could not find Java SE Runtime Environment.

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms