Picot
Picot

Reputation: 85

Downgrade java version in Eclipse

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 ?

Upvotes: 1

Views: 4872

Answers (1)

howlger
howlger

Reputation: 34275

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

See:

Upvotes: 1

Related Questions