B4J Question [web server] How to kill server process "outside the IDE"

Christos Dorotheou

Member
Licensed User
Longtime User
[web server] In release mode I forgot to kill the process before closing the IDE.
What process/service must I strangle in Windows?
Now compile the project crashes.

Start Task Manager and find a process java.exe and kill it.

If you start the server by double clicking on the Jar file then the process in the task manager is javaw.exe.
Starting it from the IDE or from a Shell like so: java.exe -jar application.jar, then the process is java.exe.

Regards

Chris
 
Upvote 0

Christos Dorotheou

Member
Licensed User
Longtime User
Of course, that way I do not kill the b4j server-specific process, but any activity of java, I suppose.

But at least I'll be able to recompile the project and then restart the server.
If you have any other java instances running they will also appear as java.exe in the task manager.

Unfortunatly there is no way in telling which one of those is your application.

This is why most of the time I start my compiled jar files via windows by double clicking so they show as javaw.exe in the task manager.

Chris
 
Upvote 0

Erel

B4X founder
Staff member
Licensed User
Longtime User
Unfortunatly there is no way in telling which one of those is your application.
It is a bit of an overkill however if you really need it then you can use jps program which is part of Java JRE to find the correct process.

The IDE for example uses it when it needs to kill ADB or other Java processes.
 
Upvote 0

LucaMs

Expert
Licensed User
Longtime User
It is a bit of an overkill however if you really need it then you can use jps program which is part of Java JRE to find the correct process.

The IDE for example uses it when it needs to kill ADB or other Java processes.


I will try to use it, thank you.

(if it is a command line program, we could develop a small interface with B4J)
 
Upvote 0
Top