WebSphere Application Server - Executing .exe file in java is not working in Websphear Application

This is Interesting: Free IT Magazines  
Home > Archive > WebSphere Application Server > February 2007 > Executing .exe file in java is not working in Websphear Application





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Executing .exe file in java is not working in Websphear Application

2007-02-19, 1:24 am

Hi All,

When I am running below code for executing .exe file in Java in websphear application developers (WSAD) its working fine, when I try to run below code in websphear application server (WAS), it?s not working.

Process p = Runtime.getRuntime().exec("C:\\Program Files\\GanttProject\\ganttproject.exe");

InputStream stderr = p.getErrorStream();
InputStreamReader isr = new InputStreamReader(stderr);
BufferedReader br = new BufferedReader(isr);
String line = null;
while ( (line = br.readLine()) != null)
System.out.println(line);

My environment:
---------------
1) Application Developer : WASD 5.1.2
2) Application Server : WAS 5.1
3) OS : Windows NT

Please help me on this issue.

Many Thanks.
Ian Burnett

2007-02-19, 7:22 am

anji_ri4u@rediffmail.com wrote:
> Hi All,
>
> When I am running below code for executing .exe file in Java in websphear application developers (WSAD) its working fine, when I try to run below code in websphear application server (WAS), it?s not working.
>
> Process p = Runtime.getRuntime().exec("C:\\Program Files\\GanttProject\\ganttproject.exe");
>
> InputStream stderr = p.getErrorStream();
> InputStreamReader isr = new InputStreamReader(stderr);
> BufferedReader br = new BufferedReader(isr);
> String line = null;
> while ( (line = br.readLine()) != null)
> System.out.println(line);
>
> My environment:
> ---------------
> 1) Application Developer : WASD 5.1.2
> 2) Application Server : WAS 5.1
> 3) OS : Windows NT
>
> Please help me on this issue.
>
> Many Thanks.


When you say "not working" would it be possible to be more specific?

Ian.

--
ian.burnett@uk.ibm.com :: IBM, Hursley, UK
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com