pesquera Active Member Licensed User Longtime User Apr 12, 2016 #1 Hi, Can somebody recommend to me some way to run a java program as a Windows/ service? It's a java (jar) server program, running fine into a windows' console.. now, it's required to be always on line.. Thanks in advance
Hi, Can somebody recommend to me some way to run a java program as a Windows/ service? It's a java (jar) server program, running fine into a windows' console.. now, it's required to be always on line.. Thanks in advance
tchart Well-Known Member Licensed User Longtime User Apr 12, 2016 #2 You need to use something like JavaService; http://forge.ow2.org/projects/javaservice/ Are you wanting to run under 64bit? I can share my 64 bit copy of JavaService and my scripts to install a windows service if you want. Upvote 0
You need to use something like JavaService; http://forge.ow2.org/projects/javaservice/ Are you wanting to run under 64bit? I can share my 64 bit copy of JavaService and my scripts to install a windows service if you want.
tchart Well-Known Member Licensed User Longtime User Apr 12, 2016 #3 Just to add I tried several other service wrappers (some mentioned on this forum) but found JavaService the most reliable and easy to use. Upvote 0
Just to add I tried several other service wrappers (some mentioned on this forum) but found JavaService the most reliable and easy to use.
pesquera Active Member Licensed User Longtime User Apr 12, 2016 #4 yes, it's w2008 server 64 bits.. I appreciate so much your help, thanks! Upvote 0
tchart Well-Known Member Licensed User Longtime User Apr 12, 2016 #5 Ok, I've put it on Dropbox; https://dl.dropboxusercontent.com/u/29310440/javaservice_x64.zip The zip file contains the x64 version of JavaService.exe, msvcr100.dll (required for JavaService.exe) and two batch files. The two batch files are to install and uninstall the service you will need to tweak these with your config. Note the batch file sets the service to "Manual" so you may want to change that to automatic. The JAR file needs to be in the same directory as the other JavaService files. Most important tips are to make sure you point at the correct JVM.dll file (ie 64bit) and also name your start entry point correctly with your package name plus ".main" eg; -start com.mypackage.main If you mix bits (ie 32bit JVM with 64 bit JavaService) it will not work. Also if the package name is wrong it will not work. Last edited: Apr 13, 2016 Upvote 0
Ok, I've put it on Dropbox; https://dl.dropboxusercontent.com/u/29310440/javaservice_x64.zip The zip file contains the x64 version of JavaService.exe, msvcr100.dll (required for JavaService.exe) and two batch files. The two batch files are to install and uninstall the service you will need to tweak these with your config. Note the batch file sets the service to "Manual" so you may want to change that to automatic. The JAR file needs to be in the same directory as the other JavaService files. Most important tips are to make sure you point at the correct JVM.dll file (ie 64bit) and also name your start entry point correctly with your package name plus ".main" eg; -start com.mypackage.main If you mix bits (ie 32bit JVM with 64 bit JavaService) it will not work. Also if the package name is wrong it will not work.
pesquera Active Member Licensed User Longtime User Apr 13, 2016 #6 yes! excellent!! it' s working like a charm.. thanks so much!! Upvote 0
M micro Well-Known Member Licensed User Longtime User Feb 20, 2018 #7 Hi tchart the file on Dropbox has been removed. you can put it again? Thanks Upvote 0
OliverA Expert Licensed User Longtime User Feb 20, 2018 #8 I use NSSM - the Non-Sucking Service Manager (link: https://nssm.cc/) Upvote 0
tchart Well-Known Member Licensed User Longtime User Oct 10, 2018 #9 Oh sorry I think it wasnt available because Dropbox changed the public folder behaviour. New link below. https://www.dropbox.com/s/prgxmihx2569mk4/javaservice_x64.zip?dl=0 Upvote 0
Oh sorry I think it wasnt available because Dropbox changed the public folder behaviour. New link below. https://www.dropbox.com/s/prgxmihx2569mk4/javaservice_x64.zip?dl=0
ihabsharaf Member Licensed User Longtime User Dec 5, 2019 #10 hi tchart I tried to run the example but it does not work Give me an error message (The service name is invalid.) Upvote 0
hi tchart I tried to run the example but it does not work Give me an error message (The service name is invalid.)