[daemon] Problem when using Procrun with Java 11

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[daemon] Problem when using Procrun with Java 11

GASPARD-EXT Joel
Hello,

I try to start a Windows service (on Windows 8.1) with Procrun 1.1.0 and Java 11. I've installed the jdk 11 built by AdoptOpenJDK

When I install the service with the option -StartMode jvm, Procrun seems not to find Java. I read in the logs :
[info]  [55436] Starting service...
[error] [55436] Failed creating java
[error] [55436] ServiceStart returned 1
[info]  [22768] Run service finished.

When I install the service with the option --StartMode Java and the option --Jvm pointing to the bin folder of my JAVA_HOME, the service starts correctly. But stopping it is very long (2 minutes).

This service works well with a JRE 8 and the option -StartMode jvm.
Problems only occur when starting and stopping with Java 11.

How can I handle this ?
Thank you in advance for your answer.

Joel Gaspard
Developer


________________________________


Ce message et toutes les pi?ces jointes qu'il contient sont uniquement destin?s aux personnes auxquelles ils sont adress?s et sont strictement confidentiels. A moins qu'il en ait ?t? explicitement convenu autrement, son contenu ne refl?te que la pens?e personnelle de son auteur et ne saurait donc repr?senter la vision officielle de l'Entreprise. Si vous avez re?u ce message par erreur, nous vous remercions de bien vouloir en informer l'exp?diteur imm?diatement par retour d'email et supprimer d?finitivement le message de vos r?pertoires. Toute utilisation de ce message non conforme ? sa destination, toute diffusion ou toute publication, totale ou partielle, est interdite, sauf autorisation expresse. L'internet ne permettant pas d'assurer l'int?grit? de ce message, l'Entreprise d?cline toute responsabilit? au titre de ce message, dans l'hypoth?se o? il aurait ?t? modifi?.


This message including any attachments is confidential and intended solely for the addressees. Unless explicitly mentioned, its content reflects only the personal thoughts of the author, and therefore cannot represent the official view of the Company. If received by error, please inform immediately the sender by return e-mail and delete definitely the message from any and all directories. Any use, dissemination or disclosure not in conformity with the intended purposes is strictly prohibited. The integrity of messages via Internet cannot be guaranteed and the Company accepts no liability for any changes which may occur.