B4J Question (SOLEVD) - jShell - StdOut

besoft

Active Member
Licensed User
Longtime User
I'm creating an application where I use the jShell library:
B4X:
Dim shl As Shell
    shl.Initialize("shl", "java.exe" , Array As String("-jar", "admin.jar", 0))
    shl.WorkingDirectory = "C:\matrix2\module_admin\Objects"
    shl.Run(-1) 'set a timeout of 10 seconds

When I close the application to StdOut I get the information. I do not know where it comes from.

B4X:
Port=3662

So it looks like the data returned. The opened application uses UDP, this information is basically the port on which it is listening ..

What should I return an open application to this StdOut? Where or how to define the information returned by the app at closing.

THX
 

besoft

Active Member
Licensed User
Longtime User
I apologize for the bad question.

I have two applications, I open second application over the first one with jShell. When I close the second application, I get to the StdOut data in the form "Port = 3662".
They communicate with each other via UDP and the returned information is the UDP port of second application.

Where is the normally defined information returned by StdOut? I can not figure out what in second application causes StdOut to show this UDP port.
 
Upvote 0

besoft

Active Member
Licensed User
Longtime User
Thanks for the reply,

Finally, I found out what was happening on StdOut. All logs from second application are visible through StdOut in the first application. Very useful.

THX
 
Upvote 0
Top