[Info-vax] Is it possible to write a JNI to give Java the VMS calling standard?

Arne Vajhøj arne at vajhoej.dk
Sun Aug 30 20:21:01 EDT 2015


On 8/30/2015 6:17 PM, Dirk Munk wrote:
> Arne Vajhøj wrote:
>> On 8/30/2015 11:42 AM, Dirk Munk wrote:
>>> Conclusion: You're free to write any utility that can produce the
>>> calling standard you like, incl. the VMS calling standard.
>>
>> Utilities can't create a calling standard at all.
>
> Not a standard as such, you're right of course. The IBM utility (similar
> to Javah I presume) produced Cobol source code.

I don't know that IBM tool but I suspect that what it supports is:

Java code---(JNI call)---Cobol exposing JNI interface

similar to:

Java code---(JNI call)---C exposing JNI interface

What can not be done with current Java is:

Java code---(VMS call)---whatever exposing VMS interface

My code worked around that by doing:

Java code---(VMS style Java call)---special Java code---(JNI)---special 
C code---(VMS call)---whatever exposing VMS interface

Sort of a double adapter pattern to make it work with JNI.

Arne






More information about the Info-vax mailing list