Logo 
Search:

Java Forum

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds

Executing C++/VB program from Java

  Asked By: Vernon    Date: Nov 25    Category: Java    Views: 1260
  

Does anybody know how to execute C++/VB program from JDK environment?
Can Java Virtual Machine execute Windows Exe from Java Program?

Share: 

 

1 Answer Found

 
Answer #1    Answered By: Edna West     Answered On: Nov 25

You can execute  a program  using the Runtime.exec() methods. Check out the
java.lang.Runtime and java.lang.Process
classes for more information. Basically, it will look like this:

Runtime rt = Runtime.getInstance();
Process process = rt.exec("c:\program.exe argument");

 
Didn't find what you were looking for? Find more on Executing C++/VB program from Java Or get search suggestion and latest updates.




Tagged: