I would like to wrap a java application as a Windows Service using C#. I can do it easily using the Process
class and calling Process.Start("java.exe", "args")
, but doing this way I have 2 process, my service wrapper and the java process. I'm looking to fully wrap the java application, including the java process.
Does anybody here has done it or knows the best way to do this in C#?