I am calling an exe file called myapp.exe via a Spring Controller; here is the code in the controller: Runtime.getRuntime().exec("D:\vmd\apps\myapp.exe");
myapp.exe is a C# .NET application. If I click directly on myapp.exe using Windows Explorer, the application opens up and runs; however, if I call the command through a Spring Controller within Tomcat, the application does not open up; but, when I open Task Manager I can see that the myapp.exe process is running. Nevertheless, the window for myapp.exe does not open up. In JBoss, the application is successfully invoked via the Spring Controller. Does anyone know why the .NET application does not open via Tomcat?
Tomcat is installed as a service. When starting Tomcat manually using the startup.bat file, and then invoking myapp.exe from a link within the Tomcat webapp, myapp.exe launches successfully. However, I am not sure about wether or not Tomcat being started as a service is preventing myapp.exe from running properly, because when JBoss was started as a service, myapp.exe launched successfully.