Can I use a library compiled with Java 8 in a Java 7 application?

A simple question: if I have an application compiled with Java 7, can I use a library compiled with Java 8 with it? Of course, Java 8 is installed.

+5
source share
1 answer

To leave the question unanswered, I copied the comment from fge (emphasizes mine):

If you are using the Java 8 JVM, yes; if you run the Java 7 JVM, then no (you will get if you try). UnsupportedClassVersionError

0
source

All Articles