Hi there
JNI - Java Native Interface allows you to do this sort of thing there is a tutorial on the sun site for it at http://java.sun.com/docs/books/tutorial/native1.1/index.html
Basically you can make a c program callable from the java program and then return results to it and vice versa - this sounds lije the sort of thing you are looking for
Hope this helps
You think?
I'd be willing to bet I could write faster code using asm than Java, but saying that there's a speed difference between C and java sounds a bit odd.
Maybe you should test the speed first, otherwise you'll go through lot's of trouble just for noticing that in fact it wasn't that much faster in C.
If you write the entire application in C/C++ it could be faster, presuming you know what you are doing.
It is unlikely to be faster to use JNI because you will have to decompose the arrays from java to C and then back again, and that will probably eat up more time than you save by doing any operations.