Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Executing an external application

 
Mohammad Talha
Greenhorn
Posts: 1
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,
is there any way by which we can execute an external file in the system whilst running the java program?
 
Matt Senecal
Ranch Hand
Posts: 255
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sure. If "PATH_TO_TARGET" is a String that is the path to the external application (ex: "C:\Files\Temp\Test.exe"), you can run it this way:
Runtime.getRuntime().exec(PATH_TO_TARGET);
[ June 26, 2002: Message edited by: Matt Senecal ]
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic