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

Dirk Munk munk at home.nl
Sun Aug 30 18:17:00 EDT 2015


Arne Vajhøj wrote:
> On 8/30/2015 11:42 AM, Dirk Munk wrote:
>> I did some more reading on this subject. If I get this correct, JNI is a
>> piece of software that reads a Java source and produces the C code to
>> call the Java routine (Or Java can call a C routine).
>
> No.
>
> JNI is the specification for calling Java->native (and native->Java).
>
> javah is a tool that generates a .h files from java byte code for
> the native methods in that byte code.

It was some weeks ago that I read about this stuff, but I assume I mean 
Javah.

>
>> JNI has nothing to do with the Java language itself. With that I mean
>> that you are not allowed to change anything on Java itself, as Microsoft
>> discovered. JNI does no such thing.
>
> Not quite.
>
> The Java language specifies the syntax and high level semantics for JNI
> call.
>
> The JVM specifies how the JVM handles it.
>
> JNI specifies more details.
>
> A different approach will most likely conflict with all of the above 3
> specifications.
>
>> 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.




More information about the Info-vax mailing list