Questions tagged [procrun]

Procrun is a set of applications that allow Windows users to wrap (mostly) Java applications (e.g. Tomcat) as a Windows service.

Procrun is a set of applications that allow Windows users to wrap (mostly) Java applications (e.g. Tomcat) as a Windows service.

The service can be set to automatically start when the machine boots and will continue to run with no user logged onto the machine.

Procrun comprises 2 applications:

  1. Prunmgr is a GUI application for monitoring and configuring procrun services.
  2. Prunsrv is a service application for running applications as services. It can convert any application (not just Java applications) to run as a service.

For more information, visit Apache Commons site here Daemon:Procrun

102 questions
1
vote
1 answer

JFrame not loading when Jar is launched through Windows Service

I installed my program in a Jar file as a Windows Service using Apache Procrun. When I run it using the command start "prunsrv.exe //TS//TestService" it runs perfectly. But when I start the service in Windows services program, it doesn't launch the…
AnOldSoul
  • 4,017
  • 12
  • 57
  • 118
1
vote
1 answer

How to schedule documents4j server standalone as windows service using procrun?

I have been trying to schedule the documents4j as windows service using procrun for RTF to PDF conversion but it keeps throwing the following error: com.documents4j.throwables.ConversionInputException: The sent input is invalid at…
WiseGeek
  • 421
  • 3
  • 6
1
vote
0 answers

Start Java WebStart with procrun

I'm trying to launch a Java WebStart application as a Windows Service using procrun. In order to do this, I created a small Java application which only launches the Java WebStart using ProcessBuilder. If I run this application directly, I don't have…
LaurentG
  • 11,128
  • 9
  • 51
  • 66
1
vote
2 answers

Java how to persist a process reference so I can run process.destroy()

I want to start a webservice via an executible jar I create (so that I can eventually use procrun to have it start up as a Windows Service). The webservice is currently started via the command line by calling the main method on the class. Here is my…
yellavon
  • 2,821
  • 12
  • 52
  • 66
1
vote
1 answer

Configure procrun in Linux machine?

I am very new to procrun. Please, can anyone suggest how to make a Java application run as a Windows service? Step by step if possible.
Bathakarai
  • 1,517
  • 6
  • 23
  • 39
0
votes
1 answer

Apache Commons Daemon (prunsrv) problems in JDK17

Good morning, Before JDK17 I had a working setup to use prunsrv in Windows to start a Java app as a service. Now I tried the same in JDK17 and I got errors. I could make some progress but now I am stuck with the latest error I got: The system cannot…
Viktor
  • 1,325
  • 2
  • 19
  • 41
0
votes
1 answer

Error "The directory name is invalid." when executing a jar using apache daemon windows service

I am trying to run a simple java jar as a windows service. After creating the service and when trying to start it I get the below error: ServiceStart returned 5. The directory name is invalid. Full Log: [2019-09-27 14:24:46] [debug] (…
Anand
  • 47
  • 2
  • 7
0
votes
0 answers

Embedded jetty not starting when run as a windows service using Apache daemon

I am trying to run embedded jetty as a windows service using Apache Commons Daemon 1.2.0. I am able to run the embedded jetty jar using java -jar and start the server successfully, however when I try to run the same using Apache Daemon it does not…
Anand
  • 47
  • 2
  • 7
0
votes
1 answer

Unable to launch a packaged executable as a Windows service via ProcRun

I have a requirement to launch an executable as a windows service with help of procrun. I followed the below steps. Created a batch-file named run.bat, to create a service. "C:\Program Files (x86)\Test\prunsrv.exe" //IS//Test --DisplayName="Test"…
unknown
  • 643
  • 4
  • 15
  • 38
0
votes
1 answer

Java: Running batch file with ProcessBuilder when app is registered as Windows Service using Procrun

There is already a 7 year old question with similar title but no accepted answer, hence reposting as my question has additional details. 7 year old question: Running batch file from Java registered as Windows Service using Procrun My question: I…
tryingToLearn
  • 10,691
  • 12
  • 80
  • 114
0
votes
0 answers

Problem encountered while remote debugging java application as a service

I followed this SO post: What are Java command line options to set to allow JVM to be remotely debugged? and was able to remotely debug my Java app that runs as a windows service through prunsrv / procrun. When I run the service with option…
tryingToLearn
  • 10,691
  • 12
  • 80
  • 114
0
votes
1 answer

Enabling jmx authentication on java app run as a service using procrun

I am running a java app as a service using procrun. The app is running fine when the JMX authentication is not enabled, but when I add an access and password files, restrict permissions on the password file and enable the JMX authentication, the app…
kiran
  • 2,280
  • 2
  • 23
  • 30
0
votes
1 answer

Run java jar as a windows service using procrun

I made a client server program that can send files from my android device to my windows 7, the server side program (windows) listens on a loop and reacts to the reception of sockets. So I exported my java program to jar file and I executed the…
0
votes
1 answer

Java as Windows Service - User data path

I am using Apache Procrun for installing a java programm as a service on windows 10. Installing the service is no problem and it mainly works as expected, however, the user data is not stored in the according user data directory under %appdata%.…
0
votes
2 answers

Solr Cloud as windows service

I am trying to start Solr Cloud as windows service using Procrun but I can not find working solution how it can be done. Maybe there is some solution how to do this? I have tried to setup Solr Cloud using this article -…