launch an exe prog from a servlet
Posted on 2001-07-10
I launch an executable program from a servlet with
Process proc = Runtime.getRuntime().exec("d:\\servlets\test.exe")
This exe use some dll to access a SYBASE database
(d:\Sybase\dll\...) and when i try the servlet, i get a message on the server:
the dll libcs.dll can not be found in the specified path
and test.exe is not executed.
There is no probleme when i launch test.exe in MS-DOS (or by double-clicking on it) or when i put test.exe in d:\sybase\dll and then try to lauch it with the servlet
but it should not stay in this directory.
d:\Sybase\dll\ is in my PATH
can somebody help me please ?