Hey, i need to run a cpp propgram from a java application. I have Visual Studio and Eclipse. I have all of the cpp files and also a .mak file which i'm not sure about how it could help me...
any help or direction would be welcome!
Hey, i need to run a cpp propgram from a java application. I have Visual Studio and Eclipse. I have all of the cpp files and also a .mak file which i'm not sure about how it could help me...
any help or direction would be welcome!
Do you want to actually run the final application? This seems more like you want to build it.
Either way you can use:
java.lang.Runtime.getRuntime().exec(command, environment)
To run a process from Java like running it from a console.
See http://java.sun.com/javase/6/docs/api/index.html?java/lang/System.html for details.