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
'ShProc=True
Else
'ShProc=False
End If
End Sub
 

OliverA

Expert
Licensed User
Longtime User
What is the error message?
 
Upvote 0
Top