You can check major / minor version of class files. If the JAR was built with Maven, you can check the version of the JDK used to create it in the META-INF/MANIFEST.MF
file, which is most likely the minimum version.
The way to check without loading the JAR is to check the POM on the central maven server, for example.
http://search.maven.org/#artifactdetails%7Cnet.openhft%7Cchronicle-queue%7C4.5.15%7Cbundle
1.8 required
<plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <configuration> <compilerArgument>-Xlint:deprecation</compilerArgument> <compilerArgument>-XDignore.symbol.file</compilerArgument> <source>1.8</source> <target>1.8</target> <encoding>UTF-8</encoding> </configuration> </plugin>
Something to consider if Oracle with all the resources does not support Java 7 for free, right?
source share