[Migrated content. Thread originally posted on 20 October 2011]
I am fairly new to COBOL, I am a JAVA developer but I have been tasked with calling a java program from an existing cobol program. So I thought I'd start with a basic proof of concept to see how it works and I can't even get it to load basic java libraries.
here is my program:$set ooctrl" p-f"
IDENTIFICATION DIVISION.
PROGRAM-ID. TEST-FD.
ENVIRONMENT DIVISION.
CONFIGURATION SECTION.
class-control.
Sys is class "$java$java.lang.System"
.
DATA DIVISION.
FILE SECTION.
WORKING-STORAGE SECTION.
77 pic-x-item pic x(50).
thread-local-storage section.
01 anInt pic x(5) comp-5.
/
PROCEDURE DIVISION.
invoke Sys "getProperty" using "os.name" giving pic-x-item.
display "Operating System: " pic-x-item.
000-EXIT-TPR.
STOP RUN.
And my Error:
Load error : file '$java$java.lang.System'
error code: 198, pc=0, call=1, seg=0
198 Load failure .. ..................................................................................................................................
Any help would be appreciated.
Thanks!

