I am having an exe created for a c program
i want to invoke that from my java file.
how do i do it ?
Runtime.exec is not working .
JNI needs it as a shared library right .
-
Running a "C" program from java (1 messages)
- Posted by: Kamali Santhosh
- Posted on: July 20 2001 08:29 EDT
Threaded Messages (1)
- Running a "C" program from java by Andy Nguyen on July 20 2001 10:44 EDT
-
Running a "C" program from java[ Go to top ]
- Posted by: Andy Nguyen
- Posted on: July 20 2001 10:44 EDT
- in response to Kamali Santhosh
If you have it compiled down to an executable, Runtime.exec() should work. What's happening when you call exec()?
If you want to use JNI, you'll probably need to write JNI code that bridges your C and Java, then compile it down to a DLL (or .so in Unix).
Andy