Hi,

For those of you who's familiar with Sheng Liang's JNI book, you might
find the attached file interesting.  It is my attempt at porting the JNI
Shared Stubs Examples to Linux/x86.  Could someone please tested it out
and see if it works ("It worked on my machine(TM)").

I did this to learn the internals of JNI and to try to make some of the
native services available to Java.  One thing I would really liked would
be a wrapper around GNU readline library, so that I can add command line
editing to some of the fine tools available over the Internet (such as
the Rhino JavaScript interpreter from Mozilla.org).

I hope this is useful to at least one other person.  But if it is not,
that's OK too.  :)

README.linux:
=============
This is a Linux/x86 port of the Shared Stubs JNI Examples by Sheng
Liang,
available from the http://java.sun.com/products/jdk/faq/jnifaq.html
page, in
files jnistb10.zip, jnistb10.tar.Z or jnistb10.tar.gz. 

I added the file dispatch_i386-pc-linux-gnu.s, which is a port of
dispatch_sparc.s to Linux/x86/gas.

The code in dispatch.c and Main.java is aware of Linux now.

The script in makefile.unix is aware of the Linux/x86 port now.

Nothing else is changed.  I have tested this port on Red Hat 6.1 (kernel
version 2.2.12-20, glibc version 2.1.2-11) with IBM JDK 1.1.8,
Sun/Inprise JDK
1.2.2 RC1 and RC2, Blackdown JDK 1.2.2 RC2/RC3.

LICENSE --- I'm not going to be bothered with a license for 73 lines of
code.
Treat the dispatch_i386-pc-linux-gnu.s as if it were posted on a mailing
list.

-- 
Weiqi Gao
[EMAIL PROTECTED]

jnistb-1.0.tar.gz

Reply via email to