versioncheck


It groups the java classes and jar files by java version.

The Version Checker Tool traverses through the given folder or directory and groups the found classes and classes inside jar files by compiled java major and minor version.

It helps to identify and resolve the java run time compatibility issues with class and jar files.

It also groups the class files inside the jar files in given directory and sub-directories.

Usage:

1) Download the jar file and keep it in your class path. Invoke the tool as, ```

java –classpath com.version.checker.main.VersionCheckerCMD verbose | short

or

java -jar [directory] verbose | short ``` 3) The command line version produces either verbose or short output.

4) The verbose output includes each and every class in directory and jar files, grouped by java class version

5) The "short" output when the tool run on j2sdk 1.4.2 lib is,

```

C:\VersionTest>java -jar VersionCheckerV1.0.jar c:\j2sdk1.4.2\jre\lib short

Version Checker Tool V1.0

Verified Direcotry : c:\j2sdk1.4.2\jre\lib

.......................................................................................... Major.Minor Version : 45.3 JAVA compatibility : Java 1.1 platform: 45.3-45.65535 Number of classes : 321

Major.Minor Version : 46.0 JAVA compatibility : Java 1.2 platform: 45.3-46.0 Number of classes : 403

Major.Minor Version : 48.0 JAVA compatibility : Java 1.4 platform: 45.3-48.0 Number of classes : 10096

......................................................................................... Total Time : 2 Seconds

```

Example 1)

Assume the VersionCheckV1.0.jar file is in current directory and C:\VersionCheck directory has to be scanned with a detailed report,

The input command is:

```

java -classpath ./VerionCheckerV1.0.jar com.version.checker.main.VersionCheckerCMD C:\VersionCheck verbose > VersionCheckOutput.txt

or

java -jar ./VerionCheckerV1.0.jar C:\VersionCheck verbose > VersionCheckOutput.txt

After execution, the "VersionCheckOutput.txt" file contains the verbose output.

```

Please submit your issue, if you face any problem in using this tool or want any new feature.

We will try to resolve the issue as soon as possible.

Thank you for using this tool.

Project Information

  • License: GNU GPL v3
  • 12 stars
  • svn-based source control

Labels:
java version compatability major minor unsupported 48.0 49.0 runtime exception check jar class resolve crawl