Last week, we had the author of TDD for a Shopping Website LiveProject. Friday at 11am Ranch time, Steven Solomon will be hosting a live TDD session just for us. See for the agenda and registration link
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
  • Liutauras Vilda
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Frits Walraven
  • Piet Souris
  • Himai Minh

how to open word document in different server

Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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,

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

I was born with webbed fish toes. This tiny ad is my only friend:
Free, earth friendly heat - from the CodeRanch trailboss
    Bookmark Topic Watch Topic
  • New Topic