This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
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
Rancher

Joined: Mar 22, 2005
Posts: 42958
    
  73
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.
 
Have you checked out Aspose?
 
subject: to run C program in Java
 
It's not a secret anymore!