Last Updated: February 25, 2016
·
1.95K
· paperaeroplain

Run Jena Fuseki as a Service on Windows

The easiest by far way to run a Java app as a service on Windows is by using one of the wrapper applications available. The following snippet is using Tanuki Software Java Wrapper here, which does have a free community edition, and pretty reasonable pricing if you need more (eg: 64bit). There's other options available, such as Yet Another Java Service Wrapper http://yajsw.sourceforge.net/

Setting up the config:

First off, follow the instructions from Tanuki:
http://wrapper.tanukisoftware.com/doc/english/launch-win.html#dedicated-setup

From here, the only slightly cryptic part being getting the "main class" set in the application parameters.

Set the following in your myAppWrapper.conf file (add paths if needed):

wrapper.java.classpath.1=fuseki-server.jar
wrapper.app.parameter.1=org.apache.jena.fuseki.FusekiCmd

followed by any other parameters required.

You may need to tweak other settings, but they should be fairly obvious.

From here, test and install as per the instructions.