| | |
problem in opening a file with application using java
Please support our Java advertiser: Programming Forums - DaniWeb Sister Site
![]() |
hi all,
i am trying to open a file with application using java. i faced many problems while processing it.
1. Using Runtime.getruntime.exec(); i faced the problem. i can open a file with application in the local system(server) where i have written the program. while by using the ip address i am accessing the program from local system(server). here the file with application open in that local system(system) only where the program code is.
2. using Response.setcontent(); here the file is downloading to the temporary folder and then opening but i need to open directly from the location.
3. using Javascript. here the program is running properly when outside the tomcat (webapps) folder but when i try to run using tomcat it throws an error " Activexobjects could not be supported".
see, i used three ways but i cant able to attain my expectation. so please help me for this problem.
i have to open a file with application directly from the specified location using java. pls help me by giving some solutions.
Advance thanks....
i am trying to open a file with application using java. i faced many problems while processing it.
1. Using Runtime.getruntime.exec(); i faced the problem. i can open a file with application in the local system(server) where i have written the program. while by using the ip address i am accessing the program from local system(server). here the file with application open in that local system(system) only where the program code is.
2. using Response.setcontent(); here the file is downloading to the temporary folder and then opening but i need to open directly from the location.
3. using Javascript. here the program is running properly when outside the tomcat (webapps) folder but when i try to run using tomcat it throws an error " Activexobjects could not be supported".
see, i used three ways but i cant able to attain my expectation. so please help me for this problem.
i have to open a file with application directly from the specified location using java. pls help me by giving some solutions.
Advance thanks....
I know there isn't one, since what you want doesn't work the way you want it to, and you've been told that a million times.
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
![]() |
Similar Threads
- Iexplore.exe keeps opening by itself (Viruses, Spyware and other Nasties)
- writing a new record problem (Java)
- how to download a file without opening file download dialog box (Java)
- I use Firefox, but IE keeps opening by itself (Viruses, Spyware and other Nasties)
- How to stop opening multiple instance for a jar file (Java)
- Rundll error coljc.dll not find (Viruses, Spyware and other Nasties)
- help!!! (Viruses, Spyware and other Nasties)
- IE will not start (Viruses, Spyware and other Nasties)
- Source Code that don't work? (Java)
- hclean.exe trojan, norton anitvirus not working and google search problems (Viruses, Spyware and other Nasties)
Other Threads in the Java Forum
- Previous Thread: Com port in use -> Print without user intervention
- Next Thread: multithreaded java bubble sort
Views: 882 | Replies: 7
| Thread Tools | Search this Thread |
Tag cloud for Java
android api apple applet application apps arguments array arrays automation binary bluetooth businessintelligence card chat class classes client code collision component crashcourse database draw eclipse ee error event exception file fractal free game gis givemetehcodez graphics gui helpwithhomework html ide image input integer integration j2me java javadoc javafx javaprojects jmf jni jpanel julia jvm linux list loop machine map method methods migrate mobile netbeans newbie nls number object oracle physics print problem program programming project radio recursion scanner screen security server service set size sms socket software sort sql string swing test textfield threads time transfer tree trolltech utility windows






