Run an executable....

How do I run an executable from within my Java program? C++ has a CreateInstance(), what does Java have.



ME

Comments

  • : How do I run an executable from within my Java program? C++ has a CreateInstance(), what does Java have.
    :
    :
    :
    : ME
    :

    Java has the [code]/*java.lang.*/Runtime.getRuntime().exec(...)[/code] methods to call system commands. I've never done anything with that, so I can not give any code to help you, but I think this would be the way to do what you were asking for. See the java-docs for further information.

    tron.
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories