Did you get options 1 and 2 to work?  They are simpler.

You haven't built the combined jar correctly.

There are a number of different Java ServiceLoader files - there are such files in jena-core, jena-arq, jena-tdb amongst others.
META-INF/services/org.apache.jena.system.JenaSubsystemLifecycle.

I don't know how to combine them with the assembly plugin.

Fuseki2 does this in
   jena-fuseki-server/pom.xml
with the shade plugin at:

<transformer implementation=
  "org.apache.maven.plugins.shade.resource.ServicesResourceTransformer"
/>

---------------

Running in an IDE (e.g. Eclipse) is the easiest way to develop. The IDE will deal with the setup for the application to run.


For the command line:

mvn dependency:build-classpath

will print out the runtime classpath needed for your application if you prefer to be able to run without maven.

    Andy


On 06/02/17 07:03, Lorenz B. wrote:
I don't know your code, but please look carefully at the stack trace:

at com.mycompany.app.RdfWriter.main(RdfWriter.java:13)
Caused by: java.lang.NullPointerException



at com.mycompany.app.RdfWriter.main(RdfWriter.java:13)
Caused by: java.lang.NullPointerException

Reply via email to