[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 14:38:02 EDT 2015


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.

> 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.

Arne





More information about the Info-vax mailing list