Error: java: enums are not supported in -source 1.3 (use -source 5 or higher to enable enums) ?????
Answered
I am using Idea Community Edition ... latest build.
Am working with jdk1.8.
When I attempt to compile these java classes (.java) as a part of a Kotlin project ... I get the above error. I have tried setting the "-source 1.7" cmd line option
on the java compiler in Settings. I have spent the last 1/2 day looking everywhere trying to figure out why the Build keeps returning the above error.
It would be nice if Idea showed in its Build.Log the actual commands it is issuing on the compile.
I have worked with MS Visual Studio for many years and this issue with Idea has me stumped!
Any help will be greatly appreciated.
cheers
Please sign in to leave a comment.
Please see http://stackoverflow.com/a/12900859/104891 .
Thx Serge.. it was the language level on the module sources that was incorrect .... compiled just fine now ....
Unfortunately google never retrieved that link when I was searching .... also have to know what question to ask.
Cheers
stevyn