B4J Question How to kill process : java (TM) Platform SE binary

Discussion in 'B4J Questions' started by electro179, May 26, 2015.

  1. electro179

    electro179 Active Member Licensed User

    Hi

    When I run and after I close my program jar the process : java (TM) platform SE Binary is always active.

    If I use B4J the process is killed well when close the program.

    Someone has a solution ?

    thank you
     
  2. Erel

    Erel Administrator Staff Member Licensed User

    Which type of program are you creating? UI app?
     
  3. electro179

    electro179 Active Member Licensed User

    I have the same issue
    I created a UI appl
     
  4. Erel

    Erel Administrator Staff Member Licensed User

    Which libraries are you using?

    What is your app doing?
     
  5. Tadeu Botelho

    Tadeu Botelho Member Licensed User

    Hello friends
    I have the same problem too.
    I'm working on building a web server with database.
    I am sharing the available space here in the forum (DataCollectionServer)
    After build or server I can not close the service that is opened without Windows Task Manager.
    I can close the service only when I close manually by task management.
    Can you help me create a way to close this service inside the B4J?
    Thank you
    DataCollectionServer.PNG Open Forever.jpg
     

    Attached Files:

  6. OliverA

    OliverA Well-Known Member Licensed User

    Please start a new thread (you should not open old ones). If need you can link to this thread in your new thread.
     
  7. OliverA

    OliverA Well-Known Member Licensed User

    Have you tried clicking on the "Kill Process" button below your log windows?
     
  8. DonManfred

    DonManfred Expert Licensed User

    That´s too easy ;)
     
  9. Tadeu Botelho

    Tadeu Botelho Member Licensed User

    Hello Friend!
    Thank you very much for your intention to help me, but it will not do.
    I need to eliminate the process automatically and without manual user intervention. Because the application will be running on a server without a keyboard, without a mouse and without a monitor. Therefore, no users.
    I need a command in B4J that does this for me when the service is no longer useful.
    I created a C language process eliminator and put it on the server to do this manual work.
    But I'd like to know how to do this in B4J. So I started to study the features of B4J 3 days ago and I still do not master it like I do in C #.
    My intention is to create a web server with available databases to be accessor via browser, windows, linux, mac or android by the clients through queries or inclusions. And this server should be flexible and small because sometimes have to stay inside the client's own machine. I found B4J very interesting and easy to use. So I'm studying these hot spots before releasing a Beta server.
    Thank you
     
  10. OliverA

    OliverA Well-Known Member Licensed User

    So, do you want the application to be able to kill/stop itself or should an outside tool do it? If you are creating a server that relies on jServer (looks like you are) you could create a handler that, given the right parameter, stops the server (therefore can stop itself). You could also install the server as a service and then use whatever operating system tools to start/stop the service (therefore allowing external tools to stop the server).

    I still think you should have started a new thread, since I'm pretty sure you are going outside of the bounds of the original question of this thread.
     
  11. Tadeu Botelho

    Tadeu Botelho Member Licensed User

    Yes.
    I have created a method for the server to receive external command for reboot or shutdown.
    Thank you for the tips.
    I'll open a new thread next time
     
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice