From: Arne Vajhj [avajhoej@gtech.com]
Sent: Wednesday, October 06, 1999 3:10 PM
To: Info-VAX@Mvb.Saic.Com
Subject: Re: How can u access RMS indexed files from Java

Troy Makaro wrote:
> Does anyone know how to access RMS indexed files from Java?

JNI !

A few weeks ago a SUN employee criticised Compaq for not
delivering a package for this.

I claimed that it was easy to write. I guess I am on the
hook now !  :-)

Attached are a small example showing how it can be done.

It is a ZIP-file (my apologies, but it is very small) with
a Pascal example (indexed files are easy in Pascal), a pure
C example and a Java example using JNI to interface some
C code.

Please do not criticise me for my Java. It is my first
Java program > 20 lines.

Arne
