| | |
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
| Thread Tools | Search this Thread |
actionlistener android api applet application array arrays automation binary block bluetooth character chat class classes client code compile component consumer database desktop developmenthelp draw eclipse error event exception fractal freeze ftp game gameprogramming givemetehcodez graphics gui html ide image input integer j2me j2seprojects java javac javaee javaprojects jmf jni jpanel julia lego linked linux list loop loops mac map method methods mobile netbeans newbie number online oracle print printf problem program programming project properties recursion researchinmotion rotatetext rsa scanner screen server set singleton size sms sort sql string swing system template textfields threads time title tree tutorial-sample update windows working






