if I am putting notepad.exe in the same directory it is working, when putting 1.exe which is java app that was created using b4j it will not run with the following error
Error: org.apache.commons.exec.ExecuteException: Execution failed (Exit value: -559038737. Caused by java.io.IOException: Cannot run program "1.exe" (in directory "C:\DEV\GAMES\One"): CreateProcess error=2, The system cannot find the file specified)
Error: org.apache.commons.exec.ExecuteException: Execution failed (Exit value: -559038737. Caused by java.io.IOException: Cannot run program "1.exe" (in directory "C:\DEV\GAMES\One"): CreateProcess error=2, The system cannot find the file specified)
B4X:
shl.Initialize("shl","1.exe",Null)
dir = "C:\DEV\GAMES\One\"
shl.WorkingDirectory = dir
shl.Run(10000) 'set a timeout of 10 seconds
'StartMessageLoop 'need to call this as this is a console app.