I try to execute a java swing jar with a JFrame from a webapp like this :
Process p = Runtime.getRuntime().exec("java -jar my_swing_app.jar");
My app starts (logs are ok) but my jframe doesn't appear. When I run the swing app with powershell, there is no problem.
I try to execute this jar in a java web application that runs in Wildfly server.
Any idea ? Thx.
UPDATE
I tried with another command (without java swing app) :
Process p = Runtime.getRuntime().exec("cmd /c start C:\\test\\build.bat");
The result is the same. I can see the process on the windows process list (build.bat) but the command prompt doesn't appear.