File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/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


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
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: 39541
    
  27
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 - updated with new look and Ping home screen widget
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: to run C program in Java
 
Similar Threads
Tomcat is *almost* running
Pls make my Tomcat Running..
Tomcat is not running.. pls help
classpath
Pls make my Tomcat Running..