Hi guys,

I have a REALLY strange problem. This is the function I have:

public static void generateXLS() {
        try {
            String[] command = { "cmd.exe", "/C", "Start", "C://
exports//convert.bat" };
            Process p = Runtime.getRuntime().exec(command);
            BufferedReader in = new BufferedReader(
                                new InputStreamReader(p.getInputStream
()));
            String line = null;
            while ((line = in.readLine()) != null) {
                System.out.println(line);
           }
        } catch (IOException e) {
           e.printStackTrace();
       }
}

This is written on the serverside. The function is fired by a previous
function, that works. The batch won't trigger for some reason, though.
The strangest part is: when I copy/paste the same code in NetBeans, it
works perfect. I've already tried this line instead of above: String[]
command = { "cmd.exe", "/C", "Start", "C:\\exports\\convert.bat" };
without any result. I'm not getting compiling errors, it just won't
trigger the batch while executing the application. I'm using Eclipse,
GWT and Maven.

Please help!!!

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to