|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:
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:
|Authored by: Veryant Support on Mon, May 2nd, 2016 at 7:00 PM
This question has been viewed 2143 times so far.
|Online URL: http://support.veryant.com/support/phpkb/question.php?ID=271|
Powered by PHPKB Knowledge Base Software