open file from another soft ware

i want open a text file from ms word when i run my program.how can i do this.Sample code please...........
[113 byte] By [chamila1986a] at [2007-11-27 6:17:06]
# 1
Why are people so caught up in trying to get Java to open a file in Word. FFS, simply open Word yourself and stop using Java.
floundera at 2007-7-12 17:29:43 > top of Java-index,Java Essentials,New To Java...
# 2

Sorry, no code.

But you could consider stopping and figuring out what you actually want: MSWord should open the file, or your program should open the file, or something else. Then,

if you're stuck, try searching the forum for some ideas on how to start.

Problems with your code, that you post, can then be addressed.

(Replying to people who reply to you is good too. You've done this in precisely zero of your threads so far - despite being asked a question in the "How Do I Obfuscate My Codez" thread.)

pbrockway2a at 2007-7-12 17:29:43 > top of Java-index,Java Essentials,New To Java...
# 3
Hi,Can you make your question more specific so that I can give any suggestion. Do you want to open a word file having extension like .doc by writing a java program or anything else.
DebadattaMishraa at 2007-7-12 17:29:43 > top of Java-index,Java Essentials,New To Java...
# 4
java.awt.Desktop.getDesktop().open(file);
prob.not.sola at 2007-7-12 17:29:43 > top of Java-index,Java Essentials,New To Java...