LucaMs Expert Licensed User Longtime User Aug 14, 2014 #1 [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.
[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.
C Christos Dorotheou Member Licensed User Longtime User Aug 14, 2014 #2 LucaMs said: [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. Click to expand... 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
LucaMs said: [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. Click to expand... 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
C Christos Dorotheou Member Licensed User Longtime User Aug 14, 2014 #4 LucaMs said: Many thanks Click to expand... Glad to be of a help. Upvote 0
LucaMs Expert Licensed User Longtime User Aug 14, 2014 #5 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. Upvote 0
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.
C Christos Dorotheou Member Licensed User Longtime User Aug 14, 2014 #6 LucaMs said: 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. Click to expand... 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
LucaMs said: 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. Click to expand... 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
LucaMs Expert Licensed User Longtime User Aug 14, 2014 #7 But you could have also more than one javaw.exe. However, for me it is enough. Thanks again. Upvote 0
Erel B4X founder Staff member Licensed User Longtime User Aug 15, 2014 #8 Unfortunatly there is no way in telling which one of those is your application. Click to expand... 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
Unfortunatly there is no way in telling which one of those is your application. Click to expand... 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.
LucaMs Expert Licensed User Longtime User Aug 15, 2014 #9 Erel said: 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. Click to expand... 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
Erel said: 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. Click to expand... I will try to use it, thank you. (if it is a command line program, we could develop a small interface with B4J)
Erel B4X founder Staff member Licensed User Longtime User Aug 15, 2014 #10 There is another simpler way to kill your server. Create a "kill" handler that calls ExitApplication. Then you will be able to kill it from the browser. Upvote 0
There is another simpler way to kill your server. Create a "kill" handler that calls ExitApplication. Then you will be able to kill it from the browser.
LucaMs Expert Licensed User Longtime User Aug 15, 2014 #11 Erel said: There is another simpler way to kill your server. Create a "kill" handler that calls ExitApplication. Then you will be able to kill it from the browser. Click to expand... Upvote 0
Erel said: There is another simpler way to kill your server. Create a "kill" handler that calls ExitApplication. Then you will be able to kill it from the browser. Click to expand...
tuicemen Member Licensed User Longtime User Jan 20, 2015 #12 Is there away to disallow multi instances in the code to prevent this? Upvote 0
Erel B4X founder Staff member Licensed User Longtime User Jan 21, 2015 #13 Please start a new thread for this question. Upvote 0