|
Re: debugplugin.exec stop suddenly without reason [message #328675 is a reply to message #328672] |
Sun, 01 June 2008 13:24 |
No real name Messages: 64 Registered: July 2009 |
Member |
|
|
I localized the prob in this small programm
import java.io.IOException;
public class Main {
/**
* @param args
*/
public static void main(String[] args) {
ProcessLauncher proc = new ProcessLauncher();
try {
proc.setOutputStream(System.out);
proc.setInputStream(System.in);
proc.setErrorStream(System.err);
String arg[]= {"cmd.exe","/C","link"};
proc.exec(arg,null);
System.out.println("hello world");
System.out.println(arg[0]);
} catch (IOException e) {
e.printStackTrace();
}
}
}
where proc do the runexec, etc..etc.. (it 's a class who work perfecly).
what funny is if I replace that line
String arg[]= {"cmd.exe","/C","link"};
by
String arg[]= {"echo hello world"};
or
String arg[]= {"cmd.exe","/C","hello world"};
that 's work. the only thing who doesn't work is the link and other
windows tools.
funny :D, but now it's java probleme and not a eclipse prob
a++
julien a écrit :
> hi all, always trying to launch a make in a special directory, I ve made
> that
>
> http://pastebin.com/m5e1f8189
>
> this thing work particulary good for me (he doesn't block eclipse,e
> tc...etc..) exept ,he doesnt finish the job.
>
> In the console I just have that
>
> Link:Dbu with Oracle with MySQL
>
> while I should have lots of line like
>
> Link:Dbu with Oracle with MySQL
> Microsoft (R) Incremental Linker Version 8.00.50727.42
> Copyright (C) Microsoft Corporation. All rights reserved.
>
> c:\yafl\YDbUpdate\wrk\\RcLogic.obj
> c:\yafl\YDbUpdate\wrk\\Object.obj
> c:\yafl\YDbUpdate\wrk\\RcTag.obj
> c:\yafl\YDbUpdate\wrk\\Linked.obj
> c:\yafl\YDbUpdate\wrk\\DtdExpander.obj
>
> etc...etc...
>
>
> I have no idea why, I have no error, et no warning, etc...
>
> do you have any idea??
>
> thanks
>
> a+++
|
|
|
Powered by
FUDForum. Page generated in 0.03230 seconds