B4J Question (solved) problem with shell (cmd)

jose luis gudino

Active Member
Licensed User
Longtime User
Could someone help me with this shell, it doesn't run the .jar file, it's on linux

Sub rest_sutran
Dim shl As Shell
shl.Initialize("shl", "java", Array As String("-jar", "clienteConsola.jar"))
shl.WorkingDirectory = "/home/cliente"
Log("**** sent comando shell cmd ****")
End Sub

Sub shl_ProcessCompleted (Success As Boolean, ExitCode As Int, StdOut As String, StdErr As String)
Log("Success:" & Success)
Log("StdErr:" & StdErr)
Log("StdOut:" & StdOut)

If Success And ExitCode = 0 Then
End If
End Sub


Licensed User
What is the error message?
Upvote 0