error: java: error: release version 15 not supported
Answered
I've just updated my intellij and seem to be getting this error message on projects that were previously working fine prior to update, please is there a fix for this? or do I need to update some file?
lol I delayed updating on puropse when it first prompted me to some days ago, fear of something going wrong.
Please sign in to leave a comment.
Please see https://intellij-support.jetbrains.com/hc/en-us/community/posts/360008143659-After-updating-to-2020-1-I-can-t-run-my-programs-Error-java-error-release-version-15-not-supported- .
A sample project would be appreciated.
Hi Serge, had already gone through above link earlier abd couldn't find any solution Version is the same "14" all through, just find it weird its working 1 minute and next it's not, would really appreciate any help sorting this out.
Please zip and upload the project at https://uploads.services.jetbrains.com/ .
It's been uploaded "1_java_fundamentals.rar" fiiename.
Language level in .idea/misc.xml is set to JDK_X instead of JDK_14, double check this configuration:
Thanks Serge Baranov that definitely fixed it!
It was set on SDK Default (14 - Switch expresions) already, then I changes it and bring it back on SDK Default and it just works. Idk why lol
But now all my projects have to be treated that way to be able to compiled.
Bug reported: https://youtrack.jetbrains.com/issue/IDEA-240068 .
I set the Language Level to 15, got this error. Setting it back to 14 did not fix it, but with grep I found JDK_15 in misc.xml and also in (My Project).iml. Changed them to JDK_14_PREVIEW by hand and now all is good.