Perlith All American 7620 Posts user info edit post |
Ok, for those of you familiar with JNI ... here's a scenario:
I need to write a program in either .NET or Java that does a function foo(). Both platforms are utilized an equal amount, so which the primary program is written om doesn't matter to me. foo() will ultimately create a string that will need to be passed to the other platform on the fly.
Method #1: - Write foo() in Java - Write a DLL in .NET with JNIExport to pass the String, load the DLL in Java - .NET calls foo() by invoking java.exe - Java calls foo() by package includes
Method #2: - Write foo() in .NET - Write a DLL in .NET with JNIExport to pass the String, load the DLL in Java - .NET calls foo() by package includes - Java calls foo() by invoking prog.exe
Is either method better/worse than another? OR, is there an entirely different solution for this which doesn't involve JNI? Advice/suggestion appreciated. Thanks. 3/21/2006 3:01:52 PM |