Multi-release JAR files support packaging and using different class files for different Java platform versions within the same JAR, enabling you to leverage new Java features while remaining backward compatible.
Source Code
jar --create --file=mr.jar --main-class=com.example.Main -C base .