Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

jar files

Status
Not open for further replies.

ptrj

Programmer
Feb 22, 2006
10
BE
Hello,
I made a program in cobol that i can run in the background, and that fix some things with a database and txt files.

But now is the problem this:
I have to make a button in my java program, that calls my cobol program. I heard that i have to make a jar file of my cobol program. Thats no problem.. but does anyone know how i can call the jar file from java?? Any help is welcome!

thx
 
If you need to know how to call a jar file from java then this is the wrong forum.


For all other subjects related to COBOL please state

OS used and version
COBOL Vendor and version

And source code that is giving you the problems if any

Regards

Frederico Fonseca
SysSoft Integrated Ltd
 
Do not agree Frederico. This is relevant and very interesting.

The newest ACU cobol release 7 has a new library function "c$java". This should make interprogramlanguage communication possible (hey, I've just inventend a new word).

Micro Focus offers the possibilty to make a "JNI" call/method invocation from java to cobol.

When you're really serious Micro Focus has the "enterprice server". This product allows you to warp a COBOL subprogram around an EJB (=Enterpirce Java Bean). The "enterpice server" acts like an EJB container. Exposing that same cobol subprogram as a SOA is just as easy.
 
...Micro Focus has the "enterprice server"...
Truusvlugindewind, you are almost but still very correct, the MF "Enterprise server" actually is an "Enterprice server" ;-)

BTW, we are actually calling (MF) Cobol programs/entry points from our Java environment, and it even bi-directionally shares data that lives in the Linkage section. This is a provision of our enhanced RTS...

Thnx
TonHu
 
I have found some information,
but i have to import mfcobol.* in my java. But my compiler doesnt know it, and I have the latest java update.. Does someone know where I can download the package mfcobol?

thx
 
ok.

then you need to call your cobol program from java, not a java program from java as you stated on your op.

has plenty of information on how to do the cobol-java stuff.

You will need to have the correct version of Microfocus COBOL for that to work. search their site for that info.

Regards

Frederico Fonseca
SysSoft Integrated Ltd
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top