Skip to Main Content

New to Java

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

how to call a C exe within a java prgram

843789May 14 2009 — edited May 20 2009
I have to call a c exe from a java program. I search the net & found this kind of solution repeatedly but it did not work for me.
 Runtime r = Runtime.getRuntime();
        Process p = null;
        p = r.exec("C:/c-test.exe");
thanX a lot in advance for any kind of help.....
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jun 17 2009
Added on May 14 2009
32 comments
549 views