Tuesday, May 11, 2010

COBOL programs for windows

Most of the enterprise code till date is still in COBOL. Understanding COBOL is a good experience, and can be an arrow in your sheath.

I used Fujitsu NetCobol for running sample COBOL programs on windows. The IDE it provides is built on eclipse platform and thus is convenient for a person already using eclipse, RAD or similar IDE..
For now running COBOL programs seems to be fun and learning... :)

Determining version of compiled class..

Came across an issue which involved determining on what version a particular file was compiled. There is one nice utility that comes with JDK, which allows to get this information from class file.

Usage:
javap -verbose

if you want to redirect output to a text file.

javap -verbose TestClass >> output.txt