• Post Reply Bookmark Topic Watch Topic
  • New Topic

Invoking executables in Java  RSS feed

 
Sammer Meer
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

How can I invoke executable files in java ? (run programs)
P.S: the Runtime.exec worked , but only for programs with GUI, and i want to invoke executables with DOS window.

Thanks
 
Ernest Friedman-Hill
author and iconoclast
Sheriff
Posts: 24217
38
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Runtime.exec() executes any program.
 
Vlado Zajac
Ranch Hand
Posts: 245
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Runtime.exec() can't launch 16-bit or dos executables under windows. At least in Java 1.4. There may be some trick to run them.
 
Phil Walterson
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What if you run an instance of command.com (or cmd.exe) and have it run the 16 bit dos programs?
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!