aspose file tools*
The moose likes Linux / UNIX and the fly likes to run C program in Java Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » Linux / UNIX
Bookmark "to run C program in Java" Watch "to run C program in Java" New topic
Author

to run C program in Java

Priya mathi
Greenhorn

Joined: Nov 15, 2000
Posts: 4
in Linux i run C as ./<filename>
the same program i want to run from Java
In java i tried using exec("./filename>")
i did'nt get any response.
how should i run
Ravi Siva
Greenhorn

Joined: Dec 03, 2005
Posts: 1
Priya,

Ravi here... mail me at ravi_siva@canada.com or MSN me at rsivananthan@hotmail.com PLEASE!

I am software engeer... and I will help you. If you are Priya Mathibalan.
Thank you Priya.
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 42639
    
  65
The Java Intermediate FAQ links to an article that describes how to properly use Runtime.exec(). There are some aspects to it that are not obvious and often cause problems. But it works well in general.


Ping & DNS - my free Android networking tools app
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: to run C program in Java