User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the Java section within the Software Development category of DaniWeb, a massive community of 455,990 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,762 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our Java advertiser: Lunarpages Java Web Hosting
Views: 1180 | Replies: 6
Reply
Join Date: Oct 2007
Posts: 79
Reputation: hidash_in has a little shameless behaviour in the past 
Rep Power: 0
Solved Threads: 0
hidash_in hidash_in is offline Offline
Junior Poster in Training

Help how to open an application like word,excel,adobe indesign,xml using java

  #1  
Dec 5th, 2007
hi all,
i cant able to open some applications like word,excel,adobe indesign,xml through java.
and i used Runtime.getexec(); code but here when we run the program the application is automatically opening. i dont need to open on execution of the program. and also at the same time i want to close the application through java program. if anybody knows the solution pls send the code.
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Aug 2007
Location: Adelaide, South Australia
Posts: 428
Reputation: darkagn will become famous soon enough darkagn will become famous soon enough 
Rep Power: 3
Solved Threads: 53
darkagn's Avatar
darkagn darkagn is offline Offline
Posting Pro in Training

Re: how to open an application like word,excel,adobe indesign,xml using java

  #2  
Dec 5th, 2007
I'm sorry hidash_in but this is the second time you've posted this question and I'm still not sure what you are trying to do. Do you mean that you want a program written in java that opens another application (like word) and then quit the original java program? If that's the case then I don't really understand the point...
Reply With Quote  
Join Date: Oct 2007
Posts: 79
Reputation: hidash_in has a little shameless behaviour in the past 
Rep Power: 0
Solved Threads: 0
hidash_in hidash_in is offline Offline
Junior Poster in Training

Help Re: how to open an application like word,excel,adobe indesign,xml using java

  #3  
Dec 5th, 2007
ya,
i am working in java platform. i want to open any application through java program.is there any java code for do this. tell the solution for this query pls.
Reply With Quote  
Join Date: Feb 2006
Posts: 1,508
Reputation: masijade is a glorious beacon of light masijade is a glorious beacon of light masijade is a glorious beacon of light masijade is a glorious beacon of light masijade is a glorious beacon of light 
Rep Power: 10
Solved Threads: 136
masijade's Avatar
masijade masijade is online now Online
Posting Virtuoso

Re: how to open an application like word,excel,adobe indesign,xml using java

  #4  
Dec 5th, 2007
If your using Java 6 look at the Class Desktop. (As long as you are not still attempting to start an application on the server in a Servlet/JSP and get it to appear on the client, you've been told often enought that that won't work.)
Java Programmer and Sun Systems Administrator

----------------------------------------------

Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it.
--Brian Kernighan
Reply With Quote  
Join Date: Oct 2007
Posts: 79
Reputation: hidash_in has a little shameless behaviour in the past 
Rep Power: 0
Solved Threads: 0
hidash_in hidash_in is offline Offline
Junior Poster in Training

Question Re: how to open an application like word,excel,adobe indesign,xml using java

  #5  
Dec 5th, 2007
thanks masijade,
but i need the clear solution, pls say can i open any application file through java for read and write. tell me a clear solution.
Reply With Quote  
Join Date: Feb 2006
Posts: 1,508
Reputation: masijade is a glorious beacon of light masijade is a glorious beacon of light masijade is a glorious beacon of light masijade is a glorious beacon of light masijade is a glorious beacon of light 
Rep Power: 10
Solved Threads: 136
masijade's Avatar
masijade masijade is online now Online
Posting Virtuoso

Re: how to open an application like word,excel,adobe indesign,xml using java

  #6  
Dec 5th, 2007
Well read the API doc for the class I told you, then you tell me. God, that doc spells it out pretty clearly. Take two minutes of your own time to read the docs (rather than hours of your time and mine posting questions that you can easily answer yourself with two minutes time, especially when you are pointed directly to what you need).
Last edited by masijade : Dec 5th, 2007 at 10:28 am.
Java Programmer and Sun Systems Administrator

----------------------------------------------

Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it.
--Brian Kernighan
Reply With Quote  
Join Date: Dec 2007
Posts: 3
Reputation: hav is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
hav hav is offline Offline
Newbie Poster

Re: how to open an application like word,excel,adobe indesign,xml using java

  #7  
Dec 6th, 2007
maybe just open a url to the file and assume that the user's machine has the file type assigned to that particular document type. I mean, if I push a .doc file to a windows user, it will probably open with word - yes?

Note: if the doc comes from an applet, then there may be sandbox issues requiring signing the applet etc.
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

DaniWeb Java Marketplace
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes

Other Threads in the Java Forum

All times are GMT -4. The time now is 9:34 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC