• Post Reply Bookmark Topic Watch Topic
  • New Topic

System commands  RSS feed

 
Harish Kashyap
Ranch Hand
Posts: 118
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi
can anybody help me telling me how i can run or execute a system command from within a java program.
thanx
 
George Brown
Ranch Hand
Posts: 919
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The following URLs should help you in understanding how to do this: http://www.javaranch.com/ubb/Forum1/HTML/000605.html http://www.javaranch.com/ubb/Forum38/HTML/000063.html http://www.javaranch.com/ubb/Forum34/HTML/000067.html
The 'search' link is found below and to the right of the 'Post New Topic' button in each and every forum - it's a handy thing to try, and is how I came up with these links.
Personally I would avoid using java programs to call other (non-java) programs. Call me strange but I don't like doing that. There should be a more elegant way to do whatever you are trying to do. What exactly do you need to call from your java program?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!