IDEA 2016.3 compile error, please help!
I just updated my IDEA to IDEA 2016.3 yesterday . But a compilation problem came to me.
> Information:Using javac 1.8.0_112-release to compile java sources
> Information:16/11/25 11:55 - Compilation completed with 1 error and 3 warnings in 4s 882ms
> Information:Module "moduleA" was fully rebuilt due to project configuration/dependencies changes
> Error:java: java.lang.ExceptionInInitializerError
My Project declared as a jdk-7 project in maven, and the project's building is fine when I use IDEA 2016.2,because my IDEA 2016.2 using javac 1.7 to compile
To solve the compilation problem, I change my compiler config as the following picture showed. Again, the compile error appeared again.
How to change build compiler from 1.8 to 1.7 ?
Please sign in to leave a comment.
@Gar97172 see one post above yours for the workaround.
I have similar problem after updating to idea version 2016.3 from 12.1.3.
I have the same problem only my java 1.6.
the fast solution what fixed my problem is found here - https://youtrack.jetbrains.com/issue/IDEA-163321
I added line
-Dcompiler.process.jdk=<path-to-jdk7-home>
to the file
idea.exe.vmoptions
and got message on make - 'Information:Using javac 1.7.0_45 to compile java sources'
Hi, today I just updated my IntelliJ to 2016.3 and having the same issue, and old legacy JDK1.6 code, that it's configured to use java 1.6 but it's compiling with Java 1.8.
IntelliJ IDEA 2016.3
Build #IU-163.7743.44, built on November 17, 2016
the workaround that set -Dcompiler.process.jdk=<path-to-jdk7-home> it works for me ^-^.
the error I encountered was introduced by a maven dependency, which use lomobk 0.12.0 as a dependency.
My project can builded successfully while the build process use javac 1.7.0.80. But I dont want to upgrade my project to jdk8 right now, because upgrading my dependency will take a lot of efforts which I cant afford now
So just set the vm option is fine for me
Thanks @Serge Baranov! for your help, but I work on multiple projects, some in java 6 and other in Java 8. I had to get back to 2016.2.5 in the meantime until the next release.
Thanks again.
Same issue. I don't know why they don't have tests to ensure that the write compiler is picked when settings are changed to a lower JDK since not all features are 100% forward compatible. Seems https://youtrack.jetbrains.com/issue/IDEA-163321 is tracking the fix however so fingers crossed I'll be able to upgrade to 2017.1 or 2016.4. I'm going to have to rollback to 2016.2 as well since I have a multitude of projects in differing versions and one at least is not forward compatible with javac 1.8*.
Alexis, the fix is already in 2016.1.3 RC that you can get at https://confluence.jetbrains.com/display/IDEADEV/IDEA+2016.3+EAP.