Reputation: 85
I should downgrade my Java version in Eclipse. Indeed, I have Java10 and I should use java7. I am trying to change the settings in "Window -> Preferences -> Java -> Compiler" or in the project properties -> Java Compiler, but Eclipse does not underline String.join for example (String.join is available from Java8)
Here are some screenshots:
Window -> Preferences -> Java -> Compiler
Project Properties -> Java Compiler
Any idea how to solve this issue ?
Upvotes: 1
Views: 4872
Reputation: 34275
Check Use '--release' option, which is exactly for this case.
See:
--release
on the Java compiler preference page Upvotes: 1