Verify java version compatibility

后端 未结 4 1469
一整个雨季
一整个雨季 2021-01-05 19:44

I have a jar file compiled using jdk 1.7, I\'d like to check during load time that the java runtime environment my jar is running under is 1.7 or newer. Is there a way to do

4条回答
  •  傲寒
    傲寒 (楼主)
    2021-01-05 20:11

    You can compile the jar specifying the older version. Check this link for further detail.

提交回复
热议问题