Why Does Java SE 6 or Java SE 7 Get Executed on Windows Systems when Java 8 Is the Default Java Version?

(Doc ID 2250658.1)

Last updated on APRIL 02, 2017

Applies to:

Java SE JDK and JRE - Version 8 and later
Microsoft Windows (32-bit)
Microsoft Windows x64 (64-bit)

Goal

With Java SE 8 and Java SE 6 installed on Windows systems, the intention is for Java SE 8 to be the system default Java version.  However, a copy of the Java SE 6 runtime has been pushed into the C:\Windows\System32 folder.  Because C:\Windows\System32 is higher in the path then the default Java installs in C:\Program Files\Java\jre6\bin and C:\Program Files (x86)\Java\jre6\bin, the version (Java 6) in the System32 folder is getting run instead of the intended Java 8 system default.

Why are the Java SE 6 executables pushed to C:\Windows\System32 and how to remove them so the default Java SE 8 runs instead?

Solution

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