Jul 29, 2002 #1 sjohri214 Programmer Jul 19, 2002 24 0 0 GB Hi, My Question is, can i call a program ( MS-word for example) which i have installed on my system using Java ? I would be grateful for any assistance Thanks
Hi, My Question is, can i call a program ( MS-word for example) which i have installed on my system using Java ? I would be grateful for any assistance Thanks
Jul 29, 2002 Thread starter #2 sjohri214 Programmer Jul 19, 2002 24 0 0 GB Hi Again, I figured out how to do it - using Runtime.exec(), so don't worry Thanks Anyway Upvote 0 Downvote
Jul 30, 2002 #3 jnicho02 Programmer Jul 20, 1999 397 0 0 GB If you want to use Runtime.exec() you should check out this article http://www.javaworld.com/javaworld/jw-12-2000/jw-1229-traps.html Runtime.exec() has an error and an output stream. If the program you run sends messages to these streams it may fill up you buffers. Although, I don't expect MS-Word will generate much output, it normally just bombs if there is an error! Also, remember that you could run java.exe in Runtime.exec() starting a java program in it's own JVM. Jeremy Nicholson, Director of http://www.firstlightassociates.co.uk a UK-based Java and Data Warehousing consultancy Upvote 0 Downvote
If you want to use Runtime.exec() you should check out this article http://www.javaworld.com/javaworld/jw-12-2000/jw-1229-traps.html Runtime.exec() has an error and an output stream. If the program you run sends messages to these streams it may fill up you buffers. Although, I don't expect MS-Word will generate much output, it normally just bombs if there is an error! Also, remember that you could run java.exe in Runtime.exec() starting a java program in it's own JVM. Jeremy Nicholson, Director of http://www.firstlightassociates.co.uk a UK-based Java and Data Warehousing consultancy
Jul 30, 2002 Thread starter #4 sjohri214 Programmer Jul 19, 2002 24 0 0 GB Thanks for the link to this article Upvote 0 Downvote