How do I find the version of the isCOBOL compiler and the Java compiler that produced a given class file?


The compilation of a program with isCOBOL is done in two steps. In the first step the isCOBOL Compiler (iscc) parses the COBOL source code and produces an intermediate Java source. In the second step the Java Compiler (javac) compiles the Java source into a class file.

To see which version of the isCOBOL Compiler used to produce the class file, run iscrun -info <your program name>.  For instance: 

    iscrun -info PROGRAM.class

The command's output will contain this text:

    COBOL: compiled with isCOBOL build #### ....

The #### text tells you the build number. Each build number coincides with an isCOBOL version.  There is a table of these build numbers and version numbers in the isCOBOL documentation's Appendices manual. 

 

To check the Java version in a .class file you can use the javap utility that is distributed with the JDK.

For example, the following command will report the version of a program named MYPROG.

   javap -verbose MYPROG | grep major

or run

  javap -verbose MYPROG

and the version number will be reported in the first 5 lines.

Note that MYPROG.class must be in the class path.
You can specify a class path with "javap -cp".

This major (or ‘magic’) version corresponds to the Java release versions listed in the Appendices section of the isCOBOL documentation, as referenced above.

 

 



Article ID: 271
Created: May 2, 2016
Last Updated: January 5, 2026
Author: Support KB Author

Online URL: https://support.veryant.com/phpkb/article.php?id=271