Search code examples
javajava-8java-7java-6

Use 2 jars compiled on different JDK in one application


Is it OK to use 2 jars (Jar1 is built on 1.6JDK, and Jar2 on 1.8JDK) in an application.


Solution

  • It is OK, as long as the JRE running your application, is not older than JRE 1.8 in your case.