B4J Tutorial Killing forgotten Java processes

Discussion in 'B4J Tutorials' started by Erel, Aug 8, 2017.

  1. Erel

    Erel Administrator Staff Member Licensed User

    If you run a non-ui app in release mode and then close the IDE, then the process will continue running.
    It is difficult to later kill it with Windows task manager as all the Java processes names are java.exe or javaw.exe.

    You can use jps, a command line tool included in Java JDK, to find the correct process.

    - Open a command line console (Start - Run - cmd.exe).
    - Run:
    Code:
    jps -l
    It will list the running Java processes with the jar or main class name.
    The first column is the process ID (PID).
    - You can kill the process with taskkill (change the pid).
    Code:
    taskkill /pid 12345 /f
     
    Informatix, souzafo, OliverA and 3 others like this.
Loading...