OK.

I don't know how much experience you have, but my first question would be:
How do you know it hasn't run - i.e. where do you look for a result?


Ian

http://examples.roughian.com


2009/4/29 Scientist <[email protected]>

>
>
>
> On Apr 29, 1:08 pm, Ian Bambury <[email protected]> wrote:
> > Why do you think this is related to GWT?
> >
> > Ian
> > Cause it's working perfectly in Netbeans, and the compile gives no
> errors.
> > http://examples.roughian.com
> >
> > 2009/4/29 Scientist <[email protected]>
> >
> >
> >
> >
> >
> > > 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!!!- Hide quoted text -
> >
> > - Show quoted text -
> >
>

--~--~---------~--~----~------------~-------~--~----~
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