Check that class target versions are as expected in a Java jar.
From: Canadian Mind Products
Check a Java jar to make sure all the javac -target versions ofthe class files are what you expect.Java application.Requires Java version 1.5 or later.All Java source code is included.to use:java -jar jarlook jar jartotocheck.jar 1.1 1.4where jartocheck.jar is the name of jar to check.It will check all the class files in it.In this example:1.1 is the lowest acceptable target version number.1.4 is the highest acceptable target version number.Currently, only version numbers 1.0, 1.1, 1.2, 1.3, 1.4, 1.5and 1.6 are supported. The program does not currently testminor version numbers.Why would you use this utility? To make sure that a jarintended to run under an old 1.1 JVM contains no classesaccidentally compiled with javac -target 1.5. Passing thistest does not guarantee the jar will work on an old JVM. Thejar still might use methods not bundled with old JVMs. Thisshould catch however, classes normally compiled with target1.1 that were accidentally compiled with 1.5 as a sideeffect of compiling some 1.5 class.There is a similar program called JarCheck available atmindprod.com/products1.html#JARCHECK
OS Support: Java, Linux, Mac OS X, Unix, Win2000, Win7 x32, Win7 x64, WinServer, WinXP, Win Vista
Hits: 138 visitors
Date added: 15 Aug 2010
Last Update: 05 Mar 2006See full specifications