JarCheck

JarCheck
  
            License: Freeware $0.00
            OS: Java,Linux,Mac OS X,Unix,Win2000,Win7 x32,Win7 x64,WinServer,WinVista,WinVista x
            Requirements: java 1.5+
            Publisher: Canadian Mind Products
            Homepage: http://mindprod.com
          

check a java jar to make sure all the javac -target versions of
the 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 jarcheck.jar jartotocheck.jar 1.1 1.7

where 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.5
and 1.6 are supported. the program does not currently test
minor version numbers.

why would you use this utility? to make sure that a jar
intended to run under an old 1.1 jvm contains no classes
accidentally compiled with javac -target 1.5. passing this
test does not guarantee the jar will work on an old jvm. the
jar still might use methods not bundled with old jvms. this
should catch however, classes normally compiled with target
1.1 that were accidentally compiled with 1.5 as a side
effect of compiling some 1.5 class.

there is a similar program called jarlook available at
mindprod.com/products1.html#jarlook


Share this post