call existing C apliction from java

hi all,

I try this

http://java.sun.com/docs/books/tutorial/native1.1/stepbystep/index.html for JNI.

we need to write the native method implementation in such a way that the method signature should exactly match the method signature created in the header file.

i want to provide interface to existing c application without distubing code taking input from stdin before

now i want java to pass that parameter and result return back in java aging

[481 byte] By [dollyna] at [2007-11-26 15:07:31]
# 1
You don't need JNI for this task. Runtime.exec() is enough. Run you C application and pass arguments using stream then get result using other stream.
Michael.Nazarov@sun.coma at 2007-7-8 8:57:34 > top of Java-index,Java HotSpot Virtual Machine,Specifications...
# 2
See http://forum.java.sun.com/thread.jspa?threadID=694404&tstart=0
vitallisa at 2007-7-8 8:57:35 > top of Java-index,Java HotSpot Virtual Machine,Specifications...