Posted by
ctrueden on
May 22, 2007; 5:55pm
URL: http://imagej.273.s1.nabble.com/Interfacing-with-external-programs-tp3697548p3697552.html
Hi,
Another technology that might be worth checking out is IKVM.NET, a JVM
implementation for .NET and Mono. It can compile Java bytecode into
CLI (i.e., convert JAR to DLL), which lets you use Java code within a
.NET application, or compile a Java application into a .NET
executable. So Java with C, C++ or C# is really straightforward, as
long as it is managed code.
The implementation supports most of Java 1.4 right now, excluding AWT
and Swing, though support for AWT/Swing has been improving a lot
lately.
http://www.ikvm.net/http://weblog.ikvm.net/CommentView.aspx?guid=e8206772-da68-4753-bb05-1ff5e4a90a8dI have not tried ImageJ with IKVM.NET, but it might be worth a shot,
as it should be very quick to test.
-Curtis
On 5/22/07, Adrian Daerr <
[hidden email]> wrote:
> -----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.html>
> Links to tutorials and the like can be found e.g. at the bottom of
>
>
http://java.sun.com/products/jdk/faq/jnifaq.html>
> or 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#ScionFGAkiz>
> HTH,
> 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.org>
> iD8DBQFGUvf7UKl/wQSyHWgRAnj3AJ9snqylZFxZIOs9qeRRhr3Xx3zuaACbBWxm
> Lq9/qGuRloDdG3hAert/xPo=
> =L/u4
> -----END PGP SIGNATURE-----
>