Problem with Javac on Windows 10 when installing Java 8

Question:

I want to install Java 8 on Windows 10!

I downloaded the required JDK from the official site, created the necessary environment variables:

JAVA_HOME - C:\Program Files\java\jdk8
Path - %JAVA_HOME%\bin

Now I type javac on the command line and get this:

This version of C:\Program Files\Java\jdk8\bin\javac.exe is not compatible with the version of Windows you're running. Check your computer's system information and then contact the software publisher.

What's wrong?

Answer:

There was a bug on this topic ( JDK-8066504 ). Judging by the backports, they should have been fixed in 8u60. Make sure you have JDK version 8u60. Just in case, download from here .

Scroll to Top