javac: invalid target release: 1.8
问题 I recently downloaded JDK 1.8.0.0_06 that comes bundled with NetBeans. I then got to find out that my JavaFx project, that I have been developing in Java 1.7 won't compile in Java 1.8, and so I stepped down my JDK to 1.7. Still I can't get it to work/ compile. I get this error: javac: invalid target release: 1.8 Usage: javac <options> <source files> I'm really stuck and would greatly appreciate any help. 回答1: if you are going to step down, then change your project's source to 1.7 as well,