Basic HTML version of Foils prepared 22 February 97

Foil 4 Java - native language communication

From Overview of TANGO Base Technology Rome Lab Quarterly Review for CIV -- October 1 96. by Marek Podgorny *

The Java language uses native method modifier to declare a method implemented in another language.The native signature of the method as well as wrapper functions are machine generated using program javah.The class using native method needs to load the native library.
  • Example:
    • 1.create java class - file ex1.java:
      • public class ex1 {publicnativeintfunct();static{System.loadLibrary("ex1.so");}}
      • #include ex1.hfunct() {...}



© Northeast Parallel Architectures Center, Syracuse University, npac@npac.syr.edu

If you have any comments about this server, send e-mail to webmaster@npac.syr.edu.

Page produced by wwwfoil on Thu Aug 14 1997