Running C/C++ executable in my Java code

Joined
Oct 19, 2006
Messages
1
Reaction score
0
I am unable to run a C/C++ executable in my java code can any one pls hep me out.....while i amable to run other java codes through the same code

A section of the code is copied below

int i=c1.getSelectedIndex();
Runtime r=Runtime.getRuntime();
try
{
if(i==3)
{
r.exec("./root/a.out");
System.exit(0);
}

}catch(Exception e){}

No action takes place even when the value of i=3
Pls reply quick..Iys kinda important
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,989
Messages
2,570,207
Members
46,783
Latest member
RickeyDort

Latest Threads

Top