IntelliJ compile for Java 7 JRE using Java 8 SDK

前端 未结 2 1912
孤独总比滥情好
孤独总比滥情好 2021-02-18 18:34

I have the Java 8 SDK and runtime, and a project that is only using Java 7 features. I was wondering whether I could set up intellij to build a Java-7-level jar, something that

相关标签:
2条回答
  • 2021-02-18 18:42

    File -> Settings -> Compiler -> Java Compiler -> Project bytecode version -> 1.7

    0 讨论(0)
  • 2021-02-18 18:57
    • Select root of your project.
    • Press F4
    • Select language level.

    enter image description here

    0 讨论(0)
提交回复
热议问题