B4J Tutorial Killing forgotten Java processes

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:
B4X:
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).
B4X:
taskkill /pid 12345 /f
 
Top