• 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 ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

how to open word document in different server

 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
[ October 27, 2005: Message edited by: dheeraj dheeraj ]
 
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Can you pls. clarify what you mean by java-application (stand-alone, web etc.) and also how the word document is used once it is fetched?

Depending upon on your security needs, you can expose the word doc in a web folder (through a web-server on windows) and try to fetch the document through a URL connection.

In case your 'java-app' is a web application, it would be much simpler, you will
just need a link to the windows web folder containing the word doc.
 
dheeraj dheeraj
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Rajiv Rangarajan:
Can you pls. clarify what you mean by java-application (stand-alone, web etc.) and also how the word document is used once it is fetched?

Depending upon on your security needs, you can expose the word doc in a web folder (through a web-server on windows) and try to fetch the document through a URL connection.

In case your 'java-app' is a web application, it would be much simpler, you will
just need a link to the windows web folder containing the word doc.



Thanks for ur concern Rajiv,
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 u send me a sample code.........
 
reply
    Bookmark Topic Watch Topic
  • New Topic