Hi Peter

Peter Jungen wrote:
> I'm sorry, this exact steps lead me to the same error as before, when
> running larq I print it in full:
> -----------
> Get Exception in thread "main" java.lang.NoClassDefFoundError:
> org/apache/lucene/store/Directory
>         at larq.larqbuilder.<init>(larqbuilder.java:40)
>         at larq.larqbuilder.main(larqbuilder.java:50)
> Caused by: java.lang.ClassNotFoundException:
> org.apache.lucene.store.Directory
>         at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
>         at java.security.AccessController.doPrivileged(Native Method)
>         at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
>         at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
>         at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
>         at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
> -----------
> The packaging was successful, but the class seems not to be available
> during runtime by some reason..

I do not really know how to think and what could be different.

Please, try this:

  svn co https://svn.apache.org/repos/asf/jena/Jena2/Fuseki/trunk/ fuseki
  cd fuseki
  wget 
https://issues.apache.org/jira/secure/attachment/12525638/JENA-63-Fuseki-r1334045.patch
  patch -p0 < JENA-63-Fuseki-r1334045.patch
  mvn dependency:tree

In the output of mvn dependency:tree do you see the following two lines?

[INFO] +- org.apache.jena:jena-larq:jar:1.0.0-incubating:compile
[INFO] |  \- org.apache.lucene:lucene-core:jar:3.5.0:compile

Another check, after you run:

  mvn package

Please, double check if the Directory.class is in your Fuseki jar, running:

  jar -ft target/jena-fuseki-0.2.2-incubating-SNAPSHOT-server.jar  | grep 
Directory

I see:

org/apache/lucene/store/Directory.class

and, again, I see no error when running:

  java -cp target/jena-fuseki-0.2.2-incubating-SNAPSHOT-server.jar 
larq.larqbuilder --help

Paolo





Reply via email to