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.

0
9 comments
Avatar
Permanently deleted user

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.

0
Avatar
Permanently deleted user

It's been uploaded "1_java_fundamentals.rar" fiiename. 

0

Language level in .idea/misc.xml is set to JDK_X instead of JDK_14, double check this configuration:

2
Avatar
Permanently deleted user

Thanks Serge Baranov that definitely fixed it!

0
Avatar
Permanently deleted user

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.

0

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.

0

Please sign in to leave a comment.