How to register JAVA executable as Windows Service in Windows 10 -


all of solutions found on stackoverflow suggest wrappers register java application windows service. requirement totally different. please don't suggest wrappers purpose. question simple have java executable , want register windows service.

phyiscal path

service properties

unfortunately don't have backup of previous setup installed windows service @ first place. need setup program or that.

not necessarily.

it difficult advise on precisely need without more information on still have; e.g. application installer, application jar files, wrapper scripts, etc. alternatively, if told application was, maybe give hints on installers, etc.

however, can tell registering java.exe or javaw.exe directly windows service will not work. these not executables java application. rather executables java virtual machine run (real) java application.

it easy task in case of visual studio. want same support in eclipse or else.

well java doesn't work that. java compiles platform independent bytecode files, not platform-specific native code. sure, there third party tools generate exe's. however, using them neither necessary, or desirable:

(and asking recommendations on tools use off-topic.)

finally, if take arbitrary java program , turn ".exe" file, won't registerable windows service. q&a talks turning ".exe" windows service.

however, can't tell if advice given there appropriate ".exe" file created arbitrary java app unspecified 3rd-part tool.


my recommendation:

  • if starting scratch, use java service launcher / wrapper.
  • if not, talk whoever supplied and/or installed application in first place.
  • if can't find information application , came from, or if vendor has gone out of business ... need urgently alternative.

Comments

Popular posts from this blog

asynchronous - C# WinSCP .NET assembly: How to upload multiple files asynchronously -

aws api gateway - SerializationException in posting new Records via Dynamodb Proxy Service in API -

asp.net - Problems sending emails from forum -