Re: Interfacing with external programs
Posted by
Adrian Daerr on
May 22, 2007; 3:02pm
URL: http://imagej.273.s1.nabble.com/Interfacing-with-external-programs-tp3697548p3697551.html
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
> Time, and help, permitting I am trying to write a plugin that can
> interface with external programs ("libraries").
The keyword here is (or was?*) Java Native Interface (JNI), such as
specified here
http://java.sun.com/j2se/1.4.2/docs/guide/jni/spec/jniTOC.htmlLinks to tutorials and the like can be found e.g. at the bottom of
http://java.sun.com/products/jdk/faq/jnifaq.htmlor through google. It's rather easy to use if you once follow a
tutorial. The ImageJ plugin I wrote using JNI-calls is not very
minimalistic, but for what it's worth the source is here:
http://www.msc.univ-paris-diderot.fr/~daerr/progs/index#ScionFGAkizHTH,
Adrian
* seems I can't find the Java Native Interface specification of Java 1.5
or 1.6; maybe just searching the wrong places.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (Darwin)
Comment: Using GnuPG with Mozilla -
http://enigmail.mozdev.orgiD8DBQFGUvf7UKl/wQSyHWgRAnj3AJ9snqylZFxZIOs9qeRRhr3Xx3zuaACbBWxm
Lq9/qGuRloDdG3hAert/xPo=
=L/u4
-----END PGP SIGNATURE-----