• Post Reply Bookmark Topic Watch Topic
  • New Topic

how to open word document in different server

 
dheeraj dheeraj
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
Can anybody tell me
how to open word document in different server
Java application is running at Unix server
word doc is at Win X
The file should be opened in read only format
" Runtime.getRuntime().exec(new String[] {"cmd", "/c", "start", "c:\"text.doc\"", "tex.doc"}); "

this one is working fine in local host(pc)
Can any body tell

new String[] {"cmd", "/c", "start", "c:\"text.doc\"", "tex.doc"})

the meaning of each string,

and
mine is web application......(Servlets,jsp's and jdbc)
The word document is used only for read only purpose.........
as i mentioned earlier, my web application is running on Unix server..... and i have to open a word document which is located on Windows........
just i want to know can we achieve it using Runtime Class......
if yes can anyone send me a sample code.........

Thanks in advance

Regard's
Dheeraj.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!