| | |
how to open an application like word,excel,adobe indesign,xml using java
Please support our Java advertiser: Programming Forums - DaniWeb Sister Site
![]() |
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.
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.
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...
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
----------------------------------------------
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
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
----------------------------------------------
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
•
•
Join Date: Dec 2007
Posts: 3
Reputation:
Solved Threads: 0
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.
Note: if the doc comes from an applet, then there may be sandbox issues requiring signing the applet etc.
![]() |
Other Threads in the Java Forum
- Previous Thread: cannot access javax.servlet.jsp.tagext.TagSupport
- Next Thread: Deloyement issue
| Thread Tools | Search this Thread |
911 addball android api applet application apps array arrays automation binary bluetooth businessintelligence button card chat class classes client code collision component crashcourse css database draw eclipse ee error event exception fractal free game gis givemetehcodez graphics gui html ide image input integer integration j2me java javadoc javafx javaprojects jni jpanel julia jvm key linux list loan loop machine map method methods migrate mobile netbeans newbie nls oracle output phone physics print problem program programming project radio recursion scanner screen server service set size sms socket software sort sql string swing textfield threads time transfer tree trolltech ubuntu utility windows






