| | |
problem in opening a file with application using java
![]() |
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 |
android api applet application apps array arrays automation awt bidirectional binary birt bluetooth businessintelligence busy_handler(null) card chat class classes client code collision columns component constructor database designadrawingapplicationusingjavajslider draw eclipse error errors eventlistener exception expand fractal free game givemetehcodez graphics gui guidancer html ide image inetaddress integer intellij j2me java javafx javamicroeditionuseofmotionsensor javaprojects jme jni jpanel jtree julia linux list loop machine map method methods migrate mobile mobiledevelopmentcreatejar myaggfun netbeans newbie oracle plazmic print problem program programming project radio recursion scanner server set sharepoint smart sms smsspam sort sortedmaps sql string subclass support swing textfield threads tree unlimited utility webservices windows






