1

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 enter image description here

Project Properties -> Java Compiler

enter image description here Any idea how to solve this issue ?

c0der
  • 18,467
  • 6
  • 33
  • 65
Picot
  • 75
  • 2
  • 10
  • Comments are not for extended discussion; this conversation has been [moved to chat](https://chat.stackoverflow.com/rooms/185205/discussion-on-question-by-picot-downgrade-java-version-in-eclipse). – Samuel Liew Dec 13 '18 at 11:19

1 Answers1

1

Check Use '--release' option, which is exactly for this case.

See:

howlger
  • 31,050
  • 11
  • 59
  • 99