Bookmark Topic Watch Topic
  • New Topic

How to call exe using Java program  RSS feed

 
Umesh Kilkile
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Report post to moderator
Hello,

How to call a exe which is written in VB that takes one argument, through Java program.

Thank You,

Umesh Kilkile
 
Kamalakannan Cm
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Report post to moderator
Before Java SE 5, Runtime.exec() method was used. In Java SE 5, we got a new class ProcessBuilder which gives
more flexibility for executing external executables.

here is an example using both of these approaches

http://www.java-tips.org/java-se-tips/java.util/from-runtime.exec-to-processbuilder.html

Regards
kamal
 
Campbell Ritchie
Marshal
Posts: 56536
172
  • Mark post as helpful
  • send pies
  • Report post to moderator
Closing as duplicate of this. Please read this.
 
    Bookmark Topic Watch Topic
  • New Topic
Boost this thread!