Title: How do I retrieve the version of the Java Compiler and the isCOBOL Compiler that produced a given class file?

The compilation of a program with isCOBOL consists 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.

In order to know the version of the isCOBOL Compiler used to produce the class file, you can process the file with the following command:

    iscrun -info PROGRAM.class

The command might print one of the following outputs:

    COBOL: java OBJECTs

It means that the program was compiled with a newer version of isCOBOL and your old version is not able to process the class, or

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

The ??? number tells you the build number. You can retrieve the isCOBOL version according to the following table:

Build number
isCOBOL version
261
2007
338
2007.1
413
2008
433
2008.1
510
2009
530
2009.1
546
2009.2
570
2010 R1
600
2010 R2
626
2010 R3
641
2011 R1
663
2011 R2
672
2011 R3
681
2012 R1
705
2012 R2
723
2013 R1
745
2013 R2
780
2014 R1
821
2015 R1
855
2016 R1

In order to know the version of the Java Compiler used to produce the class file, you can process the class with the following command:

    javap -verbose PROGRAM

(Note that in this case it's important to omit the ".class" extension)

At the beginning of the output you will find

    major version: ###

where the ### is the magic number.

You can retrieve the Java version according to the following table:

Magic number
Java version
48
Java 1.4
49
Java 1.5
50
Java 1.6
51
Java 1.7
52
Java 1.8
Authored by: Veryant Support on Mon, May 2nd, 2016 at 7:00 PM
This question has been viewed 2088 times so far.
Online URL: http://support.veryant.com/support/phpkb/question.php?ID=271

Powered by PHPKB Knowledge Base Software