support: Customer Portal
Focused on delivering choice, investment protection and flexibility to organizations with valuable COBOL assets
 

Veryant Knowledge Base
Home > All Categories > Compiler General > How do I retrieve the version of the Java Compiler and the isCOBOL Compiler that produced a given class file?
Question 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 This question has been viewed 1912 times so far.
Click Here to View all the questions in Compiler General category.
File Attachments File Attachments
There are no attachment file(s) related to this question.
How helpful was this article to you?
User Comments User Comments Add Comment
There are no user comments for this question. Be the first to post a comment. Click Here
Related Questions Related Questions
  1. Why do I get the error "java.lang.NoClassDefFoundError: com/sun/tools/javac/Main" ?
  2. How do I resolve "Error writing file: too many constants" error?
  3. What compiler options cannot be specified with the >> IMP OPTION compiler directive?
  4. Is there a faster way to compile?
  5. How can I make my Linkage parameters more flexible?
  6. Using Regular Expressions to replace text in your program
Article Information Additional Information
Article Number: 271
Created: 2016-05-02 9:35 AM
Rating: No Rating
 
Article Options Article Options
Print Question Print this Question
Email Question Email Question to Friend
Export to Adobe PDF Export to PDF File
Export to MS Word Export to MS Word
Bookmark Article
Subscribe to Article Subscribe to Article
 
Search Knowledge Base Search Knowledge Base



 
 

© Veryant - All Rights Reserved
Veryant and isCOBOL are trademarks or registered marks of Veryant in the United States and other countries. All other marks are the property of their respective owners.