Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

to run C program in Java

 
Priya mathi
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic