This is a Console example

** Windows **********************************************

It is configured to find JNI.pas in ..\..\PAS.

First create NATIVE.dll by compiling NATIVE.dpr with Delphi.
The second step is to compile Main.java and Native.java with
the Java compiler. For Sun's JDK this is javac.exe.
You will get Main.class and Native.class.
All these files are already enclosed to speed things up.

Now you can start the Java program Main by executing
java Main
in a console window (DOS box).

** Kylix ************************************************

Please add ../../PAS to the search path in the project options
in Kylix.

First create NATIVE.so by compiling NATIVE.dpr with Kylix.
The second step is to compile Main.java and Native.java with
the Java compiler. For Sun's JDK this is javac.
You will get Main.class and Native.class.
Both .class files are already enclosed to speed things up.
You can remove NATIVE.dll on Linux.

You may have to include the Kylix bin directory and the current
directory into your library path.
Check if the environment variable LD_LIBRARY_PATH contains
these directories.
Sample entry: LD_LIBRARY_PATH=/opt/kylix/bin:.

Now you can start the Java program Main by executing
java Main
in a shell window.

*********************************************************

See the included documentation for details.