0

I am trying to downgrade the target build version of java, but somehow I can´t change it within IntelliJ, don´t understeand why.

Under File -> Project Structure -> Projects I changed the language level and the SDK (java 11), but somehow javap -v shows me the major version 62

No idea why. Don´t know if it makes difference, using Fedora 37 and IntelliJ 2022.1.1

How can I downgrade the project SDK?

enter image description here

enter image description here

WinterMute
  • 145
  • 2
  • 11
  • Check the project bytecode version in `Settings->Build, Execution, Deployment->Java Compiler`. – F. Salvini Jul 24 '22 at 22:31
  • YouTube video by JetBrains: [*Helen's Take On: Project SDK, Language Level and JDKs*](https://youtu.be/W4EK_KVgfkw) – Basil Bourque Jul 25 '22 at 04:00
  • 1
    See also https://stackoverflow.com/a/67523751/12844632 and https://stackoverflow.com/a/12900859/12844632 . Why do you use JBR (JetBrains Runtime) for running the project? I'd recommend you switch to another vendor if you're not developing IntelliJ plugin. – Egor Klepikov Jul 25 '22 at 07:41
  • @EgorKlepikov thank you for the hint. Somehow changing settings inside the IntelliJ does not affect anything. No idea why. Setting the source and target compbatibility in gradle fixed it first. Thank you – WinterMute Jul 25 '22 at 08:26

0 Answers0