javac: invalid target release: 1.8 javac: invalid target release: 1.8 java java

javac: invalid target release: 1.8


For IntelliJ14 you may have to change the bytecode version w.r.t. the JDK you are using (in the global settings):

enter image description here


if you are going to step down, then change your project's source to 1.7 as well,

right click on your Project -> Properties -> Sources window 

and set 1.7 here

note: however I would suggest you to figure out why it doesn't work on 1.8


  1. Download JDK 8.
  2. Edit your env var for JAVA_HOME to point to the new installed JDK 1.8:R-click on My Computer -> Properties -> Advanced System Settings -> Environment Variablesfind JAVA_HOME on the list and set it's value to something like that:

    C:\Program Files\Java\jdk1.8.0_31
  3. Find the old version and edit it in PATH variable aswell.

  4. Probably you will need to restart the system.

Should be done.