Reputation: 73
I need to install a java application onto another machine other than my own as a windows service. The issue is I cannot install any third party software on their machine. My restrictions are pretty the java i write and the software native to windows/microsoft.
I've read that I cannot convert a java application to a windows service without a third party, but could I use a third party to convert a java application to a .exe that can be used as a windows service and deploy it to another machine?
Upvotes: 1
Views: 412
Reputation: 652
Do you consider java to be a third party service? You need to include the JRE, if it's not installed on the machine.
Upvotes: 1
Reputation: 304
To the best of my knowledge, there really aren't options out there that get past the requirement for a JVM. See this similar question here: Compiling java source code to native exe
And note that the GCJ mentioned in that post no longer exists nor supports any recent version of java as far as i know.
Then on that page there's a link to this question with a lot of options that DO involve packaging a JVM with your code: How can I convert my Java program to an .exe file?
Upvotes: 1