更新时间:2023-01-14 23:41:44
通过右键单击左侧窗格转到项目属性
Go to the project properties by right clicking on the left hand pane
构建->编译
在下方,您会看到其他编译器选项
将参数指定为 -target 6
这将根据 JDK 6
编译您的代码,当您运行该程序时,它将使用 JRE 运行它7
.
give the params as -target 6
and this will compile you code according to JDK 6
and when you will run the program it will run it using JRE 7
.