Cannot compile with Java 7 with EAP 2017.3

Answered

When I try to run anything in either of my two modules in my project that are built with Java 7, I get:

Error:java: Compilation failed: internal java compiler error

 

I don't know where to look to get more info on the error.  The idea.log contains no info on the problem.

 

If I switch to JDK 8, all is well.

0
5 comments

Check build.log, enable debug info: https://intellij-support.jetbrains.com/hc/articles/207241085. Try reinstalling JDK.

0
Avatar
Permanently deleted user

Same issue here.

In my case I'm compiling with JDK 6. Switching to JDK 8 also seems to solve the problem.

Enabled the logs as per instructions but can't see much other than:

DEBUG - s.incremental.java.JavaBuilder - java:ERROR:Compilation failed: internal java compiler error
DEBUG - s.incremental.java.JavaBuilder - java:JPS_INFO:Errors occurred while compiling module 'web'

The messages build contains:

Information:3/10/17 3:13 PM - Compilation completed with 1 error and 5 warnings in 3s 601ms

0
Avatar
Permanently deleted user

Tried recreating the JDK 6 inside IntelliJ inside SDKs and still  the same problem.

0
Avatar
Permanently deleted user

Looks like a bug and that it is (Hopefully) fixed in the EAP available now.

https://youtrack.jetbrains.com/issue/IDEA-179781

0
Avatar
Permanently deleted user

Thanks Adam - I can confirm that it is working for me on the latest EAP.

0

Please sign in to leave a comment.