mc73 Well-Known Member Licensed User Longtime User Apr 24, 2015 #1 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.
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.
Erel B4X founder Staff member Licensed User Longtime User Apr 26, 2015 #2 I wasn't able to reproduce it. A new version of B4J will soon be available. Lets see whether it will solve this issue or not. Upvote 0
I wasn't able to reproduce it. A new version of B4J will soon be available. Lets see whether it will solve this issue or not.
rwblinn Well-Known Member Licensed User Longtime User Apr 26, 2015 #3 Do experience same behaviour - it happens occasionally - tried to reproduce, but also not able to. Upvote 0
mc73 Well-Known Member Licensed User Longtime User Apr 29, 2015 #4 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. Code: Copy 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
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. Code: Copy 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.