B4J Question b4j server error

mc73

Well-Known Member
Licensed User
Longtime User
When trying to close b4j, in the case I'm running a Jetty server, I get a "failed to kill previous program" exception. I then have to go to task manager and kill java.exe in order to close the b4j editor aftrwards. I think that this was not appearing in early versions of b4j.
 

mc73

Well-Known Member
Licensed User
Longtime User
Ok, so here's what I found out.
In a sub inside the non-ui, I have a call to start another app, which is a ui app.
B4X:
Dim js As Shell
   js.Initialize("shl", "java.exe" , Array As String("-jar", "theSecondAppUI.jar"))
   js.WorkingDirectory = File.DirApp
     js.Run(-1)

If I don't call this, I have no problem killing process, or exiting b4j.
From what I understand, perhaps b4j has a problem understanding which java process to close.
 
Upvote 0
Top