Runtime.getRunTime().exec() failing [message #306754] |
Fri, 04 August 2006 05:36  |
Eclipse User |
|
|
|
Hello everyone,
My intention is to open external files through code. The editor can be
eclipse's one or external application registered with it at OS level.
I have tried 2 methods. The first method is
1) Using the code in openExternalFileAction() and all the other files it
uses. The error says "TextEditor doesn't have a document provider". I put
a extension for FileDocumentProvider and registered the Default TextEditor
with it but it's still not budging. I feel I've done something wrong in
this step.
The second methid is
2)Using the Runtime class. I used the following code to open "temp.doc"
Process process = Runtime.getRuntime().exec("C:\temp\temp.doc");
It's unable to create a process. The code is failing here also else it
would've been an easier way to do.
Please give a pointer to the problem. I would greatly appreciate it. I've
been reading all the forums but still didn't get any correct way.
Thanks in advance,
Sushma
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.05660 seconds