I have a B4J launcher to launch a web server app using jShell. How can I get the server app to report back to the launcher that the app loaded successfully and is running. Is there a stdout method or some other way of doing this.
Currently the launcher is reporting back 'timeout' after 10 seconds, see code below.
B4X:
Sub btnLaunch_Click
btnLaunch.Enabled = False
btnKill.Enabled = True
shl.Initialize("shl", "java", Array As String(txtjarALPN.text,"-jar", txtJarApp.text))
shl.WorkingDirectory = txtJarWorkingDir.text
shl.Run(10000) 'set a timeout of 10 seconds
End Sub